Skip to content
Discussion options

You must be logged in to vote

Hey @vlourme,

There's no refresh access_token, there's actually no access_token at all: the Instagram Private API works differently than regular APIs.
If you check the example you'll see the user is always ever prompted to log in the first time: once it's done, and the Secret stored on KeychainStorage, it's gonna retrieve that Secret and never even prompt the login again. You only ever need to log back in if endpoints fail and they require you to authenticate the user again.
You should not store the user's credentials.

Once you're authenticated with BasicAuthenticator, next time just call KeychainStroage<Secret>().all().first and get the first stored Secret and use it directly (or store t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vlourme
Comment options

Answer selected by sbertix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants