feat: add version info

This commit is contained in:
Lakhan Samani
2022-03-09 11:53:34 +05:30
parent 157b13baa7
commit dd64aa2e79
11 changed files with 73 additions and 27 deletions

View File

@@ -151,6 +151,9 @@ func SignupResolver(ctx context.Context, params model.SignUpInput) (*model.AuthR
}
} else {
scope := []string{"openid", "email", "profile"}
if params.Scope != nil && len(scope) > 0 {
scope = params.Scope
}
authToken, err := token.CreateAuthToken(gc, user, roles, scope)
if err != nil {