fixed some code
parent
6c088c50ed
commit
923c6d0952
|
@ -31,7 +31,7 @@ const defaultKeyStoreInitializer = (c: Context): KeyStorer => {
|
||||||
|
|
||||||
export const verifyFirebaseAuth = (
|
export const verifyFirebaseAuth = (
|
||||||
userConfig: VerifyFirebaseAuthConfig
|
userConfig: VerifyFirebaseAuthConfig
|
||||||
): Handler<string, VerifyFirebaseAuthEnv> => {
|
): Handler => {
|
||||||
const config = {
|
const config = {
|
||||||
projectId: userConfig.projectId,
|
projectId: userConfig.projectId,
|
||||||
AuthorizationHeaderKey:
|
AuthorizationHeaderKey:
|
||||||
|
|
|
@ -32,7 +32,7 @@ describe("verifyFirebaseAuth middleware", () => {
|
||||||
|
|
||||||
describe("service worker syntax", () => {
|
describe("service worker syntax", () => {
|
||||||
test("valid case, should be 200", async () => {
|
test("valid case, should be 200", async () => {
|
||||||
const app = new Hono<VerifyFirebaseAuthEnv>();
|
const app = new Hono();
|
||||||
|
|
||||||
resetAuth();
|
resetAuth();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue