update docs

This commit is contained in:
wobsoriano
2022-11-24 13:10:10 -08:00
parent e11edc59eb
commit f67f7fc5f4

View File

@@ -21,7 +21,7 @@ export async function createContext(event: H3Event) {
// Will be available as `ctx` in all your resolvers
// This is just an example of something you might want to do in your ctx fn
const authorization = getRequestHeader(event, authorization)
const authorization = getRequestHeader(event, 'authorization')
async function getUserFromHeader() {
if (authorization) {
const user = await decodeAndVerifyJwtToken(authorization.split(' ')[1])