Skip to content

Commit

Permalink
chore: rename jtw to jwt (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsw authored Jan 21, 2025
1 parent ec9b727 commit a4d45df
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playground/auth.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare module '#auth-utils' {
interface UserSession {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extended?: any
jtw?: {
jwt?: {
accessToken: string
refreshToken: string
}
Expand Down
2 changes: 1 addition & 1 deletion playground/middleware/jwt.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineNuxtRouteMiddleware(async () => {
// Access token expired, refreshing
else if (isExpired(accessPayload)) {
console.info('access token expired, refreshing')
await useRequestFetch()('/api/jtw/refresh', {
await useRequestFetch()('/api/jwt/refresh', {
method: 'POST',
onResponse({ response: { headers } }) {
// Forward the Set-Cookie header to the main server event
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a4d45df

Please sign in to comment.