Update oauth2.rs once again

I hope now i wont screw this up lol. Passed sqlite and postgres tests
This commit is contained in:
berthrann 2025-03-11 16:11:19 +03:00 committed by GitHub
parent 046c2f83c6
commit 3a2212aa7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,10 +135,7 @@ pub async fn get_user(code: &str, state: &str) -> Result<User> {
let conf = config::get();
let provider = conf.user_authentication.oauth2.provider.clone();
let userinfo_url = conf.user_authentication.oauth2.userinfo_url.clone();
let assume_email_verified = conf
.user_authentication
.oauth2
.assume_email_verified;
let assume_email_verified = conf.user_authentication.oauth2.assume_email_verified;
match provider.as_ref() {
"clerk" => get_clerk_user(access_token, &userinfo_url).await,