mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 19:11:29 +00:00
now with refresh token
This commit is contained in:
1 parent
dd8945dc5e
commit
fe7b8a8d07
1 file changed
+5
-1
@@ -121,9 +121,13 @@ pub async fn oauth_end_enroll_from_redirect(
|
||||
}
|
||||
})?;
|
||||
|
||||
let auth_token = user_token.access_token.as_str();
|
||||
let auth_token = user_token.access_token.secret().to_string();
|
||||
let refresh_token: Option<String> = user_token.refresh_token
|
||||
.as_ref()
|
||||
.map(|token| token.secret().to_string());
|
||||
|
||||
info!("Auth token: {:?}", auth_token);
|
||||
info!("Refresh token: {:?}", refresh_token);
|
||||
|
||||
Ok(HttpResponse::Ok()
|
||||
.body("TODO"))
|
||||
|
||||
Reference in new issue
Block a user