feat: add supertokens
This commit is contained in:
10
platform/supertoken/users.ts
Normal file
10
platform/supertoken/users.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import supertokens, { type User } from "supertokens-node";
|
||||
|
||||
/**
|
||||
* Get a user by provided user id.
|
||||
*
|
||||
* @param userId - User id to retrieve.
|
||||
*/
|
||||
export async function getUserById(userId: string): Promise<User | undefined> {
|
||||
return supertokens.getUser(userId);
|
||||
}
|
||||
Reference in New Issue
Block a user