token.get.ts 194 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 import { getToken } from '#auth' export default defineEventHandler(async event => { await setAuthOnlyRoute(event, 'You must be signed in to get your token.') return getToken({ event }) })