Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add a reauthenticate method to expose refresh token use#167

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tqc wants to merge1 commit intofullstackreact:master
base:master
Choose a base branch
Loading
fromtqc:reauth

Conversation

@tqc
Copy link
Contributor

@tqctqc commentedOct 9, 2017

This update improves the handling of refresh tokens when using a javascript api rather than the native makeRequest. Somewhat related to#82.

JS code can call reauthenticate to get a new token when a request fails due to an expired token.

I also added saving of the new token after a refresh - previously the new token would be in memory for subsequent makeRequest calls, but the next app startup would return the expired token.

iOS only for now - the android implementation is fairly straightforward, but isn't included as I'm not set up to test that at the moment.

@monolithed
Copy link

@tqc, what aboutexpires_in? How to refresh token without this field?

@tqc
Copy link
ContributorAuthor

tqc commentedDec 23, 2017

@monolithed An expiry time isn’t needed - if the token you have doesn’t work, try getting a new one. You could check the expiry beforehand if you really wanted to, but it wouldn’t be particularly reliable anyway - there are plenty of other reasons for a token to expire.

@sb8244
Copy link

Something like this would be really helpful for me, since I'm having a hard time getting makeRequest to work, but JSfetch would be easy to get setup

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@tqc@monolithed@sb8244

[8]ページ先頭

©2009-2025 Movatter.jp