feat: checkpoint
This commit is contained in:
14
apps/react/src/services/zitadel.ts
Normal file
14
apps/react/src/services/zitadel.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createZitadelAuth, type ZitadelConfig } from "@zitadel/react";
|
||||
|
||||
const config: ZitadelConfig = {
|
||||
authority: "https://auth.valkyrjs.com",
|
||||
client_id: "347982179092987909",
|
||||
redirect_uri: "http://localhost:5173/callback",
|
||||
post_logout_redirect_uri: "http://localhost:5173",
|
||||
response_type: "code",
|
||||
scope: "openid profile email",
|
||||
};
|
||||
|
||||
export const zitadel = createZitadelAuth(config);
|
||||
|
||||
export type User = NonNullable<Awaited<ReturnType<typeof zitadel.userManager.getUser>>>;
|
||||
Reference in New Issue
Block a user