issue-129 small changes before bigger pre
these are not strictly related
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user