Skip to content

Commit

Permalink
fix: return header & signature in response
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed Feb 10, 2025
1 parent 4aaccf4 commit 69ca4cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ import type {
AuthMFAEnrollPhoneResponse,
JWK,
JwtPayload,
JwtHeader,
} from './lib/types'
import { stringToUint8Array } from './lib/base64url'

Expand Down Expand Up @@ -2637,7 +2638,7 @@ export default class GoTrueClient {
jwks: { keys: JWK[] } = { keys: [] }
): Promise<
| {
data: { claims: JwtPayload }
data: { claims: JwtPayload; header: JwtHeader; signature: Uint8Array }
error: null
}
| { data: null; error: AuthError }
Expand Down Expand Up @@ -2677,6 +2678,8 @@ export default class GoTrueClient {
return {
data: {
claims: payload,
header,
signature,
},
error: null,
}
Expand Down Expand Up @@ -2706,6 +2709,8 @@ export default class GoTrueClient {
return {
data: {
claims: payload,
header,
signature,
},
error: null,
}
Expand Down

0 comments on commit 69ca4cf

Please sign in to comment.