Bot releases are visible (Hide)
builder:watch
- by @danielroe (63124)
Published by wobsoriano 8 months ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
h3
to 1.6.2@nuxt/kit
to 3.3.2es-module-lexer
to 1.2.0Published by github-actions[bot] over 1 year ago
No significant changes
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] almost 2 years ago
No significant changes
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
// todo.server.ts
export function createContext() {
const event = useEvent()
async function getUserFromHeader() {
const authorization = getRequestHeader(event, 'authorization')
if (authorization) {
const user = await decodeAndVerifyJwtToken(authorization.split(' ')[1])
return user
}
return null
}
event.context.user = await getUserFromHeader()
}
export async function addTodo(todo: Todo) {
const event = useEvent()
if (!event.context.user) {
throw createError({ statusCode: 401 })
}
// addTodo logic
}
Published by github-actions[bot] almost 2 years ago
No significant changes
Published by github-actions[bot] almost 2 years ago
No significant changes
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
No significant changes
Published by github-actions[bot] almost 2 years ago
No significant changes