Skip to content

Obtaning new access token using stored refresh token #441

Answered by sreeise
buhaytza2005 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi everyone!

Disclaimer: I have not been working with Rust for a very long time and I am only a hobbyist.

That being said, I am trying to move some of my code from Python to Rust and one of the libraries I use heavily is the msal-sdk one.

With the Python version I am able to cache - on disk - the token obtained through a device code flow. This is taken care of automagically for me. It seems that this is something that will be coming to the sdk but I am happy to manage it myself at the moment.

I am currently saving the token on disk and reusing it to make queries successfully until the token expires.

The issue I have is that I can't seem to request a new token by using the refresh_token.

I…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by buhaytza2005
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