My team is building an Angular SPA and we are planning on using Implicit flow as recommended. We’d like to add an additional check on the Express server hosting the Angular app to verify that the user is indeed authenticated before sending down any application code. If the User isn’t authenticated, we send them a stripped down login page that uses your Widget and libraries to log the user in, and redirect back to the Angular SPA after sign in.
My initial thought was to configure the tokenManager to store the tokens as cookies, and after these cookies are sent to the express server, create a middleware that uses the introspect endpoint to verify the access token. However, it looks like configuring the tokenManager this way isn’t an option.
Is there a recommended approach for this?