platformsh / platformsh-client-js

Platform.sh API client library
MIT License
8 stars 12 forks source link

Authentication challenge improvements #314

Closed MiguelSanchezGonzalez closed 4 months ago

MiguelSanchezGonzalez commented 4 months ago

Allows holding the retry request after receiving a 401 response.

This can be useful in case we want to show a notification to the user telling where they are going to be redirected.

This requires a setup on the client side and is opt in by default. If no hold401Responses is provided on the client config, the client will continue to behave exactly as before