3 ms·
If the SPA is doing XHR requests then a localStorage is also an option. It has the advantage that the application can control on which requests the token is bei
by zimbatm 10y ago
If the SPA is doing XHR requests then a localStorage is also an option. It has the advantage that the application can control on which requests the token is being sent, in contracts with cookies where they are sent for any requests on then domain.