Add different authentication modes to JS SDK #3599
Labels
c/sdk/js
This is related to the JavaScript SDK
in progress
We're working on it
technical debt
Not necessarily broken, but could be done better/cleaner
Milestone
Summary
Since #2564, we allow authorization by session cookie. The SDK does however not support this new authentication mode. This should be added.
Why do we need this?
To use the JS SDK with a session cookie for authentication, e.g. for the account app (#1422).
What is already there? What do you see now?
What is missing? What do you want to see?
Possibility to configure the SDK to use the session cookie (in conjunction with a CSRF token) for authentication.
How do you propose to implement this?
Currently, the constructor signature for the SDK client class is
TtnLw(token, options)
TTS()
How do you propose to test this?
Update unit tests and manual testing. Any issue here should also be caught by our e2e's.
Can you do this yourself and submit a Pull Request?
Yes.
The text was updated successfully, but these errors were encountered: