diff --git a/src/auth/mod.rs b/src/auth/mod.rs index 1384c5f60..85383f233 100644 --- a/src/auth/mod.rs +++ b/src/auth/mod.rs @@ -25,7 +25,7 @@ pub struct GitHubUser { pub avatar_url: String, pub name: String, pub email: Option, - pub bio: String, + pub bio: Option, } pub async fn get_github_user_from_token( diff --git a/src/routes/auth.rs b/src/routes/auth.rs index d6344e0b4..83c4442e2 100644 --- a/src/routes/auth.rs +++ b/src/routes/auth.rs @@ -187,7 +187,7 @@ pub async fn auth_callback( name: user.name, email: user.email, avatar_url: Some(user.avatar_url), - bio: Some(user.bio), + bio: user.bio, created: Utc::now(), role: Role::Developer.to_string(), }