Skip to content

Commit ec0e5bb

Browse files
committed
feat: initial commit
1 parent a6c8301 commit ec0e5bb

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ Thumbs.db
2222
# Vite
2323
vite.config.js.timestamp-*
2424
vite.config.ts.timestamp-*
25+
26+
dist

public/vite.svg

Lines changed: 19 additions & 1 deletion
Loading

src/components/SignOutButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { useAuth } from 'react-oidc-context';
33
export default function SignOutButton() {
44
const auth = useAuth();
55

6-
const handleSignOut = () => {
7-
auth.signoutRedirect({
6+
const handleSignOut = async () => {
7+
await auth.signoutRedirect({
88
post_logout_redirect_uri:
99
import.meta.env.VITE_ZITADEL_POST_LOGOUT_URL ||
1010
window.location.origin + '/',

src/views/IndexView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { useAuth } from 'react-oidc-context';
55
export default function IndexView() {
66
const auth = useAuth();
77

8-
const login = () => {
9-
auth.signinRedirect();
8+
const login = async () => {
9+
await auth.signinRedirect();
1010
};
1111

1212
return (

0 commit comments

Comments
 (0)