killian.s
javascript async function getUsersThatHaveRole(role: string) { const response = await UserRoles.getUsersThatHaveRole(role); console.log(response); if (response.status === "UNKNOWN_ROLE_ERROR") { // No such role exists return; } const users: string[] = response.users; }
javascript { users: [ '8cba27de-db0c-43ea-9d76-0ac6a44d7a38', '1aac8fa3-5a95-4016-902f-1613d8e339cb' ], status: 'OK' }
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).