0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

chore(core): fix typos in comment (#5718)

This commit is contained in:
wangsijie 2024-04-16 13:11:18 +08:00 committed by GitHub
parent 43430afddb
commit de47d6ab5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,