feat: user CRUD
This commit is contained in:
8
api/dto/refresh_token_request_body.go
Normal file
8
api/dto/refresh_token_request_body.go
Normal 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"`
|
||||
}
|
||||
10
api/dto/refresh_token_response.go
Normal file
10
api/dto/refresh_token_response.go
Normal 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"`
|
||||
}
|
||||
11
api/dto/user_profile_response.go
Normal file
11
api/dto/user_profile_response.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user