0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

refactor(core): use snake_case for extra claims (#1017)

This commit is contained in:
Gao Sun 2022-06-01 16:02:23 +08:00 committed by GitHub
parent ca5c8aaec1
commit 124d7acf49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,9 +131,9 @@ export default async function initOidc(app: Koa): Promise<Provider> {
// Add User Roles to the AccessToken claims. Should be removed once we have RBAC implemented.
// User Roles should be hidden and determined by the AccessToken scope only.
return {
return snakecaseKeys({
roleNames,
};
});
}
},
});