UNPKG

@neurosity/sdk

Version:
10 lines (9 loc) 396 B
import { Action } from "../types/actions"; declare type OAuthClaims = { oauth?: true; authId?: string; scopes?: string; }; export declare function validateOAuthScopeForAction(userClaims: OAuthClaims, action: Action): [boolean, Error | null]; export declare function validateOAuthScopeForFunctionName(userClaims: OAuthClaims, functionName: string): [boolean, Error | null]; export {};