feat: add admin role for all users for now
This commit is contained in:
@ -144,7 +144,7 @@ func (h *OAuthHandler) tokenEndpoint(w http.ResponseWriter, r *http.Request) {
|
|||||||
Name: user.FullName,
|
Name: user.FullName,
|
||||||
Picture: user.ProfilePicture.String,
|
Picture: user.ProfilePicture.String,
|
||||||
Nonce: nonce,
|
Nonce: nonce,
|
||||||
Roles: []string{"user"},
|
Roles: []string{"user", "admin"},
|
||||||
RegisteredClaims: jwt.RegisteredClaims{
|
RegisteredClaims: jwt.RegisteredClaims{
|
||||||
Issuer: "https://cb5f-2a00-10-5b00-c801-e955-5c68-63d0-b777.ngrok-free.app",
|
Issuer: "https://cb5f-2a00-10-5b00-c801-e955-5c68-63d0-b777.ngrok-free.app",
|
||||||
// TODO: use dedicated API id that is in local DB and bind to user there
|
// TODO: use dedicated API id that is in local DB and bind to user there
|
||||||
|
Reference in New Issue
Block a user