diff --git a/docs/content/1.get-started/3.tips/3.authorization.md b/docs/content/1.get-started/3.tips/3.authorization.md index 2e58250..4527f4f 100644 --- a/docs/content/1.get-started/3.tips/3.authorization.md +++ b/docs/content/1.get-started/3.tips/3.authorization.md @@ -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])