• Robert Knight's avatar
    Only clear the auth cache after login/logout when using cookie-based auth · 1a2c4aac
    Robert Knight authored
    When using cookie-based auth, login / logout happens via HTTP requests
    made by the "session" service and the auth service has to be explicitly
    notified afterwards via `auth.clearCache()`.
    
    When using OAuth-based auth on the other hand, login / logout happens
    through the auth service itself, so there is no need to ask the auth
    service to clear cached credentials afterwards.
    1a2c4aac
session-test.js 12 KB