We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40609e9 commit 7f09528Copy full SHA for 7f09528
src/oauth/server.ts
@@ -182,15 +182,15 @@ authRouter.get(
182
}
183
184
if (await isClientAlreadyApproved(req, client.id, COOKIE_SECRET)) {
185
- res.render('approval-dialog', {
186
- client,
187
- state: btoa(JSON.stringify(requestParams)),
188
- });
+ const authUrl = await upstreamAuth(btoa(JSON.stringify(requestParams)));
+ res.redirect(authUrl.href);
189
return;
190
191
192
- const authUrl = await upstreamAuth(btoa(JSON.stringify(requestParams)));
193
- res.redirect(authUrl.href);
+ res.render('approval-dialog', {
+ client,
+ state: btoa(JSON.stringify(requestParams)),
+ });
194
},
195
);
196
0 commit comments