issue-129 Add custom auth ui/ux

This commit is contained in:
Kurt Hutten
2020-12-03 06:55:26 +11:00
parent 8379b03537
commit fc4906757a
23 changed files with 548 additions and 26 deletions

View File

@@ -70,7 +70,7 @@ import { AuthenticationError, ForbiddenError, parseJWT } from '@redwoodjs/api'
* return await db.user.findOne({ where: { decoded.email } })
* }
*
* @example - User info is conatined in the decoded token and roles extracted
* @example - User info is contained in the decoded token and roles extracted
*
* export const getCurrentUser = async (decoded, { _token, _type }) => {
* return { ...decoded, roles: parseJWT({ decoded }).roles }