Skip to content

Commit

Permalink
chore(core): fix typos in comment (#5718)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsijie authored Apr 16, 2024
1 parent 43430af commit de47d6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/libraries/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ export const createUserLibrary = (queries: Queries) => {
};

/**
* Find user scopes for a resource indicator, from roles and organization roles
* set organizationId to narrow down the search to the specific organization, otherwise it will search all organizations
* Find user scopes for a resource indicator, from roles and organization roles.
* Set `organizationId` to narrow down the search to the specific organization, otherwise it will search all organizations.
*/
const findUserScopesForResourceIndicator = async (
userId: string,
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/oidc/extra-token-claims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import type Libraries from '#src/tenants/Libraries.js';
import type Queries from '#src/tenants/Queries.js';

/**
* For organization API resource feature,
* add extra token claim `organization_id` to the access token.
* notice that this is avaiable only when `resource` and `organization_id` are both present.
* For organization API resource feature, add extra token claim `organization_id` to the
* access token.
* Note that this is available only when `resource` and `organization_id` are both present.
*/
export const getExtraTokenClaimsForOrganizationApiResource = async (
ctx: KoaContextWithOIDC,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/queries/organization/relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class RoleUserRelationQueries extends RelationQueries<

/**
* Get the available resource scopes of a user in all organizations.
* if organizationId is provided, it will only search in that organization
* If `organizationId` is provided, it will only search in that organization.
*/
async getUserResourceScopes(
userId: string,
Expand Down

0 comments on commit de47d6a

Please sign in to comment.