The SimpleJWT sjwt
library simplifies using simplejwt.com. It gives you simple tools for your end users to register, login, etc for a complete user management experience. All end users have an associated JSON store that you can access as well.
-
npm install sjwt
-
import {register} from 'sjwt';
-
const response = await register({email, password, projectId});
-
import {getAuthenticatedUser} from 'sjwt';
-
const user = await getAuthenticatedUser({projectId});