-
Notifications
You must be signed in to change notification settings - Fork 206
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
chore: fix auth flow #109
chore: fix auth flow #109
Conversation
30b7705
to
09cbab8
Compare
09cbab8
to
53f6ca9
Compare
24e55fc
to
d5ef55b
Compare
) -> (Arc<Mutex<Token>> /* access_token */, JoinHandle<()>) { | ||
let rt = Runtime::new().unwrap(); | ||
|
||
let (access_token, refresh_token) = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will block forever if we can't connect to auth, which i think will stop the rest of the validator from starting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we pass the access token into this method and spin it up right away?
or do auth refresh inline with the rest of the work so it's not a separate thread
No description provided.