File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ export function createOidcAuth(
343343 function signInIfNecessary ( ) {
344344 if ( auth . myRouter ) {
345345 const current = auth . myRouter . currentRoute
346- if ( current && current . meta . authName === authName ) {
346+ if ( current && current . meta && current . meta . authName === authName ) {
347347 Log . debug ( `${ authName } auth page re-signin with ${ defaultSignInType } ` )
348348
349349 signInReal ( defaultSignInType , { state : { current } } )
@@ -372,7 +372,7 @@ export function createOidcAuth(
372372 function redirectAfterSignout ( router : Router | null ) {
373373 if ( router ) {
374374 const current = router . currentRoute
375- if ( current && current . meta . authName === authName ) {
375+ if ( current && current . meta && current . meta . authName === authName ) {
376376 router . replace ( '/' )
377377 return
378378 }
You can’t perform that action at this time.
0 commit comments