Skip to content

Commit a4d45df

Browse files
authored
chore: rename jtw to jwt (#326)
1 parent ec9b727 commit a4d45df

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

playground/auth.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ declare module '#auth-utils' {
3838
interface UserSession {
3939
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4040
extended?: any
41-
jtw?: {
41+
jwt?: {
4242
accessToken: string
4343
refreshToken: string
4444
}

playground/middleware/jwt.global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineNuxtRouteMiddleware(async () => {
2828
// Access token expired, refreshing
2929
else if (isExpired(accessPayload)) {
3030
console.info('access token expired, refreshing')
31-
await useRequestFetch()('/api/jtw/refresh', {
31+
await useRequestFetch()('/api/jwt/refresh', {
3232
method: 'POST',
3333
onResponse({ response: { headers } }) {
3434
// Forward the Set-Cookie header to the main server event

0 commit comments

Comments
 (0)