File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @authdog/remix-node " : patch
3+ ---
4+
5+ add logout loader for remix
Original file line number Diff line number Diff line change 1+ import { LoaderFunction } from "@remix-run/node" ;
2+ import { logoutLoader } from "@authdog/remix-node" ;
3+
4+ export const loader : LoaderFunction = logoutLoader ;
Original file line number Diff line number Diff line change @@ -234,4 +234,5 @@ export const remixAuthLoader = async ({
234234 } ) ;
235235} ;
236236
237- export { AuthdogProvider } from "./provider.tsx" ;
237+ export { AuthdogProvider } from "./provider" ;
238+ export { logoutLoader } from "./logout"
Original file line number Diff line number Diff line change 11import { LoaderFunction , redirect } from "@remix-run/node" ;
22
3- export const loader : LoaderFunction = async ( { context, request } ) => {
3+ export const logoutLoader : LoaderFunction = async ( { context, request } ) => {
44 const headers = new Headers ( ) ;
55
66 const publicKey = process . env . PK_AUTHDOG ;
You can’t perform that action at this time.
0 commit comments