supertokens-node
Version:
NodeJS driver for SuperTokens core
13 lines (12 loc) • 378 B
TypeScript
// @ts-nocheck
import { APIFunction } from "../../types";
declare const addRoleToUser: ({ stInstance, tenantId, options, userContext }: Parameters<APIFunction>[0]) => Promise<
| {
status: "OK";
didUserAlreadyHaveRole: boolean;
}
| {
status: "UNKNOWN_ROLE_ERROR" | "FEATURE_NOT_ENABLED_ERROR";
}
>;
export default addRoleToUser;