Hi,
I have a springboot with html/javascript app where springboot is serving both html content and backend API data as well..So its serving both front end and backend data…Now I want to integrate this app with okta..can you suggest the best way to implement this?I integrated with okta springboot starter but concern I have is;to secure my REST API endpoints which am calling using javascript fetch calls I have to pass the access token that I get after successful okta authentication in every request header and currently am using spring security defualtSuccessUrl where am getting okta tokens..So is there a better way to do this?Like use okta-auth js SDK?I believe okta-auth-js is more secure as SDK’s token manager handles all tokens rather than storing tokens in memory..please suggest…also am using spring boot version 3.4.x..so which okta-auth-js version should I be using?Also if am using okta-auth-js should I be setting up my app as SPA in the okta developer account ?This is not a Single Page Application but am not sure if I have to select web or SPA?