Documentation on oktacallbackcomponent states that : " This logic can be customized by copying the component to your own source tree and modified as needed. For example, you may want to capture or display errors differently or provide a helpful link for your users in case they encounter an error on the callback route. The most common error is the user does not have permission to access the application. In this case, they may be able to contact an administrator to obtain access."
This is exactly what I would like to do but I’m unsure which files I need to edite in the node_modules or if there is a better approach
Has anyone ran into the same issue before?
Just trying to display and give the user options when I get the error “user does not have permission to access the application”
Hey there! To create your callback component, the best way is to copy the code from the implementation in the SDK found in this file into a component you create within your project and edit it to your needs. In the route definition, you’ll add your custom component as the component for the callback route, for example:
Hi, I initially had it set up that way, however I’m still getting the same error.
Are there any extra files I need to import to my program? Pasting here my current set up of the callback component just in case.
Fyi, I was able to make it work. I commented out the portion of the code that was flagging it as an error. I might be missing something by doing that, but the code works after doing so. Im rolling with it.