feat(auth): Enhance Google OAuth integration with PKCE support and CSRF validation improvements

This commit is contained in:
MythEclipse
2025-08-12 16:11:15 +07:00
parent adf3ef8e28
commit a25e896fa2
6 changed files with 357 additions and 28 deletions
+1
View File
@@ -50,6 +50,7 @@ pub struct UsersCreateRequestDto {
pub phone_number: String,
pub is_active: bool,
pub role_id: String,
pub avatar: Option<String>,
}
#[derive(Clone, Debug, Serialize, Deserialize, ToSchema, Validate)]
+1 -1
View File
@@ -117,7 +117,7 @@ impl UsersSchema {
)),
gender: None,
birthdate: None,
avatar: None,
avatar: user.avatar,
is_deleted: false,
role: make_thing(&ResourceEnum::Roles.to_string(), &user.role_id),
created_at: get_iso_date(),