File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ Thumbs.db
2222# Vite
2323vite.config.js.timestamp- *
2424vite.config.ts.timestamp- *
25+
26+ dist
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { useAuth } from 'react-oidc-context';
33export 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 + '/' ,
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { useAuth } from 'react-oidc-context';
55export 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 (
You can’t perform that action at this time.
0 commit comments