Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to adjust the token on the homeserver API. #1153

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Half-Shot
Copy link
Member

This is needed in the case of expiring access tokens. I haven't implemented the full token refresh system yet, but I need this as a stepping stone for an upstream project.

* @param {string} token A Matrix Access Token
*/
async updateAccessToken(token) {
this._session.updateAccessToken(token);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think _session could be null?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants