fix: refactor schema for open id claim standards
This commit is contained in:
@@ -3,7 +3,6 @@ package resolvers
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/authorizerdev/authorizer/server/db"
|
||||
"github.com/authorizerdev/authorizer/server/graph/model"
|
||||
@@ -27,17 +26,7 @@ func Users(ctx context.Context) ([]*model.User, error) {
|
||||
}
|
||||
|
||||
for i := 0; i < len(users); i++ {
|
||||
res = append(res, &model.User{
|
||||
ID: fmt.Sprintf("%v", users[i].ID),
|
||||
Email: users[i].Email,
|
||||
SignupMethod: users[i].SignupMethod,
|
||||
FirstName: &users[i].FirstName,
|
||||
LastName: &users[i].LastName,
|
||||
EmailVerifiedAt: &users[i].EmailVerifiedAt,
|
||||
Roles: strings.Split(users[i].Roles, ","),
|
||||
CreatedAt: &users[i].CreatedAt,
|
||||
UpdatedAt: &users[i].UpdatedAt,
|
||||
})
|
||||
res = append(res, utils.GetResUser(users[i]))
|
||||
}
|
||||
|
||||
return res, nil
|
||||
|
Reference in New Issue
Block a user