diff --git a/src/auth/mod.rs b/src/auth/mod.rs index 1384c5f6..85383f23 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 d6344e0b..83c4442e 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(), }