feat: user CRUD

This commit is contained in:
2025-11-09 21:20:36 -07:00
parent afa91548e1
commit 5862378dc1
15 changed files with 399 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
package dto
type RefreshTokenRequest struct {
GrantType string `url:"grant_type"`
ClientId string `url:"client_id"`
ClientSecret string `url:"client_secret"`
RefreshToken string `url:"refresh_token"`
}

View File

@@ -0,0 +1,10 @@
package dto
type RefreshTokenResponse struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
IdToken string `json:"id_token"`
Scope string `json:"scope"`
ExpiresIn int64 `json:"expires_in"`
TokenType string `json:"token_type"`
}

View File

@@ -0,0 +1,11 @@
package dto
type UserProfileResponse struct {
Sub string `json:"sub"`
Nickname string `json:"nickname"`
Name string `json:"name"`
PictureUrl string `json:"picture"`
Updated_at string `json:"updated_at"`
Email string `json:"email"`
Verified bool `json:"email_verified"`
}