[ad_1]
I am writing an Angular application using Okta for authentication. I have some pages that I only want to allow a user to activate if they are not authenticated. I could not find any guards or functions in the version of the Okta package I am using, but it does have a router guard (OktaAuthGuard) to check if a user is authenticated. Is it possible to use the opposite result of this guard, or create a guard which takes the inverse of the canActivate() function of OktaAuthGuard, to get my desired functionality?
Package versions:
@okta/okta-angular: 2.2.1
@okta/okta-signin-widget: 5.16.1
[ad_2]