Browse Source

Update PixiAuthIdentityProvider.cs

Krzysztof Krysiński 2 months ago
parent
commit
7053f0bfbb

+ 6 - 0
src/PixiEditor.IdentityProvider.PixiAuth/PixiAuthIdentityProvider.cs

@@ -149,6 +149,12 @@ public class PixiAuthIdentityProvider : IIdentityProvider
                 SaveUserInfo();
                 return true;
             }
+            else
+            {
+                User = null;
+                await Logout();
+                Error("SESSION_EXPIRED");
+            }
         }
         catch (ForbiddenException e)
         {