Skip to content

Refreshing tokens #108

Answered by baywet
diogovieira asked this question in Q&A
Mar 16, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @diogovieira,
Thanks for using the Go SDK and for reaching out.
Azure Identity, the library we're using under the covers to handle authentication, provides a TokenCachePersistenceOptions class/struct that you can assign to the credential (device code in your case) to get the library to handle token storage and retrieval in a secure way for you depending on the target OS. see this example in dotnet for the CLI we're building

Unfortunately the Go version of the library does seem to support it yet (it's more recent). I'm going to suggest you reach out directly to them to inquire about the plans for the library to support it.
The alternative would be to store the refresh token yourself, bu…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dadams39
Comment options

@baywet
Comment options

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