matthew
2 years ago
1 changed files with 8 additions and 2 deletions
@ -1,11 +1,17 @@
|
||||
import { AuthClientPlugin } from "@blitzjs/auth" |
||||
// import { AuthClientPlugin } from "@blitzjs/auth"
|
||||
import { setupBlitzClient } from "@blitzjs/next" |
||||
import { BlitzRpcPlugin } from "@blitzjs/rpc" |
||||
|
||||
const authStub = ()=>{ |
||||
globalThis.__BLITZ_SESSION_COOKIE_PREFIX = "blitz"; |
||||
return {events:{},middleware:{}, exports: ()=>({})} |
||||
} |
||||
|
||||
// export const authConfig = {
|
||||
// cookiePrefix: "searching-front-cookie-prefix",
|
||||
// }
|
||||
//AuthClientPlugin(authConfig)
|
||||
export const { withBlitz } = setupBlitzClient({ |
||||
plugins: [BlitzRpcPlugin({})], |
||||
plugins: [authStub(),BlitzRpcPlugin({})], |
||||
}) |
||||
|
||||
|
Loading…
Reference in new issue