mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	OIDC - Specifically check for 401 status before resetting (#3500)
This commit is contained in:
		| @@ -77,8 +77,10 @@ export default class DynamicOpenIDConnectScheme extends OpenIDConnectScheme { | ||||
|         }) | ||||
|         // Update tokens with mealie token | ||||
|         this.updateTokens(response) | ||||
|       } catch { | ||||
|       } catch (e) { | ||||
|         if (e.response?.status === 401) { | ||||
|           this.$auth.reset() | ||||
|         } | ||||
|         const currentUrl = new URL(window.location.href) | ||||
|         if (currentUrl.pathname === "/login" && currentUrl.searchParams.has("direct")) { | ||||
|           return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user