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:
parent
43430afddb
commit
de47d6ab5e
3 changed files with 6 additions and 6 deletions
|
@ -169,8 +169,8 @@ export const createUserLibrary = (queries: Queries) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find user scopes for a resource indicator, from roles and organization roles
|
* 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
|
* Set `organizationId` to narrow down the search to the specific organization, otherwise it will search all organizations.
|
||||||
*/
|
*/
|
||||||
const findUserScopesForResourceIndicator = async (
|
const findUserScopesForResourceIndicator = async (
|
||||||
userId: string,
|
userId: string,
|
||||||
|
|
|
@ -17,9 +17,9 @@ import type Libraries from '#src/tenants/Libraries.js';
|
||||||
import type Queries from '#src/tenants/Queries.js';
|
import type Queries from '#src/tenants/Queries.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For organization API resource feature,
|
* For organization API resource feature, add extra token claim `organization_id` to the
|
||||||
* add extra token claim `organization_id` to the access token.
|
* access token.
|
||||||
* notice that this is avaiable only when `resource` and `organization_id` are both present.
|
* Note that this is available only when `resource` and `organization_id` are both present.
|
||||||
*/
|
*/
|
||||||
export const getExtraTokenClaimsForOrganizationApiResource = async (
|
export const getExtraTokenClaimsForOrganizationApiResource = async (
|
||||||
ctx: KoaContextWithOIDC,
|
ctx: KoaContextWithOIDC,
|
||||||
|
|
|
@ -202,7 +202,7 @@ export class RoleUserRelationQueries extends RelationQueries<
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the available resource scopes of a user in all organizations.
|
* 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(
|
async getUserResourceScopes(
|
||||||
userId: string,
|
userId: string,
|
||||||
|
|
Loading…
Add table
Reference in a new issue