issue-129 small changes before bigger pre

these are not strictly related
This commit is contained in:
Kurt Hutten
2020-12-05 18:13:35 +11:00
parent 9d13e0d5a4
commit f70299a79f
6 changed files with 23 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ export const handler = async (req, _context) => {
email: 'k.hutten@protonmail.ch',
confirmation_sent_at: '2020-10-19T18:09:01Z',
app_metadata: { provider: 'email' },
user_metadata: { full_name: 'sick_dog' },
user_metadata: { full_name: 'sick_dog', userName: 'hi bob' },
created_at: '2020-10-19T18:09:01Z',
updated_at: '2020-10-19T18:09:01Z'
}

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 }