Browse Source

fix auth cookies server

main
matthew 2 years ago
parent
commit
8c6838fdfd
  1. 10
      searching-front/app/blitz-server.ts

10
searching-front/app/blitz-server.ts

@ -6,11 +6,11 @@ import { authConfig } from "./blitz-client"
export const { gSSP, gSP, api } = setupBlitzServer({ export const { gSSP, gSP, api } = setupBlitzServer({
plugins: [ plugins: [
AuthServerPlugin({ // AuthServerPlugin({
...authConfig, // ...authConfig,
storage: PrismaStorage(db), // storage: PrismaStorage(db),
isAuthorized: simpleRolesIsAuthorized, // isAuthorized: simpleRolesIsAuthorized,
}), // }),
], ],
onError: (...args) => console.log("FROM BLITZ SERVER ERROR", ...args), onError: (...args) => console.log("FROM BLITZ SERVER ERROR", ...args),
}) })

Loading…
Cancel
Save