mirror of
https://github.com/ysoftdevs/oauth-playground-client.git
synced 2026-01-16 08:37:11 +01:00
Error redirect mechanism
This commit is contained in:
@@ -160,6 +160,10 @@
|
||||
const tokenEndpoint = baseUrl + "/token";
|
||||
const code = new URLSearchParams(window.location.search).get('code');
|
||||
|
||||
if (!code) {
|
||||
window.location = "/flow/expired";
|
||||
}
|
||||
|
||||
function fillRequestExample() {
|
||||
const requestExample =
|
||||
"grant_type=authorization_code" + "\n"
|
||||
|
||||
Reference in New Issue
Block a user