Open
Description
This library’s handling of edit tokens is currently a bit inconsistent, I think:
- Most of the “crud operations” (
create
,edit
,move
etc.) read the token fromthis.editToken
, and that member is also used once in the README. It’s not mentioned in API.md, though. - The token is also stored in
this.state
, asthis.state.csrftoken
. getEditToken()
returns aPromise
that resolves withthis.state
, not the edit token directly. This is not documented in API.md, though.
I have no idea which of these should be used when making a request directly with request()
. this.editToken
looks good, but it’s unclear if it’s part of the stable interface. getEditToken()
is part of the stable interface, but resolves with an undocumented value that looks more like an implementation detail than this.editToken
. Can you clarify this?
Metadata
Metadata
Assignees
Labels
No labels