Skip to content

Commit b275d9f

Browse files
committed
Fix building!
1 parent 0542ca7 commit b275d9f

File tree

7 files changed

+17
-8
lines changed

7 files changed

+17
-8
lines changed

packages/auth-providers/auth0/api/src/decoder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const verifyAuth0Token = (
6565
})
6666
}
6767

68-
export const authDecoder: Decoder = async (token: string, type: string) => {
68+
export const authDecoder: Decoder = async (token: string, type: string | null) => {
6969
if (type !== 'auth0') {
7070
return null
7171
}

packages/auth-providers/azureActiveDirectory/api/src/decoder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import jwksClient from 'jwks-rsa'
33

44
import type { Decoder } from '@redwoodjs/api'
55

6-
export const authDecoder: Decoder = async (token: string, type: string) => {
6+
export const authDecoder: Decoder = async (token: string, type: string | null) => {
77
if (type !== 'azureActiveDirectory') {
88
return null
99
}

packages/auth-providers/clerk/api/src/decoder.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import type { Decoder } from '@redwoodjs/api'
33
/**
44
* @deprecated This function will be removed; it uses a rate-limited API. Use `clerkAuthDecoder` instead.
55
*/
6-
export const authDecoder: Decoder = async (token: string, type: string) => {
6+
export const authDecoder: Decoder = async (
7+
token: string,
8+
type: string | null
9+
) => {
710
if (type !== 'clerk') {
811
return null
912
}
@@ -40,7 +43,7 @@ export const authDecoder: Decoder = async (token: string, type: string) => {
4043

4144
export const clerkAuthDecoder: Decoder = async (
4245
token: string,
43-
type: string
46+
type: string | null
4447
) => {
4548
if (type !== 'clerk') {
4649
return null

packages/auth-providers/firebase/api/src/decoder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Decoder } from '@redwoodjs/api'
55

66
// Alternative third-party JWT verification process described here:
77
// https://firebase.google.com/docs/auth/admin/verify-id-tokens#verify_id_tokens_using_a_third-party_jwt_library
8-
export const authDecoder: Decoder = async (token: string, type: string) => {
8+
export const authDecoder: Decoder = async (token: string, type: string | null) => {
99
if (type !== 'firebase') {
1010
return null
1111
}

packages/auth-providers/netlify/api/src/decoder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface NetlifyTokenPayload extends Record<string, unknown> {
1717

1818
export const authDecoder: Decoder = async (
1919
token: string,
20-
type: string,
20+
type: string | null,
2121
req: { context: LambdaContext }
2222
) => {
2323
if (type !== 'netlify') {

packages/auth-providers/supabase/api/src/decoder.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import jwt from 'jsonwebtoken'
22

33
import type { Decoder } from '@redwoodjs/api'
44

5-
export const authDecoder: Decoder = async (token: string, type: string) => {
5+
export const authDecoder: Decoder = async (
6+
token: string,
7+
type: string | null
8+
) => {
69
if (type !== 'supabase') {
710
return null
811
}

packages/auth-providers/supertokens/api/src/decoder.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import jwksClient from 'jwks-rsa'
44

55
import type { Decoder } from '@redwoodjs/api'
66

7-
export const authDecoder: Decoder = async (token: string, type: string) => {
7+
export const authDecoder: Decoder = async (
8+
token: string,
9+
type: string | null
10+
) => {
811
if (type !== 'supertokens') {
912
return null
1013
}

0 commit comments

Comments
 (0)