mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 00:22:43 -05:00
fix: lint
This commit is contained in:
@@ -217,7 +217,7 @@ export async function authorizeMCPOAuth(
|
||||
if (query.prompt !== "consent") {
|
||||
const redirectURIWithCode = new URL(redirectURI);
|
||||
redirectURIWithCode.searchParams.set("code", code);
|
||||
if(ctx.query.state){
|
||||
if (ctx.query.state) {
|
||||
redirectURIWithCode.searchParams.set("state", ctx.query.state);
|
||||
}
|
||||
throw ctx.redirect(redirectURIWithCode.toString());
|
||||
@@ -245,7 +245,7 @@ export async function authorizeMCPOAuth(
|
||||
// No consent page configured - fall back to direct redirect with code
|
||||
const redirectURIWithCode = new URL(redirectURI);
|
||||
redirectURIWithCode.searchParams.set("code", code);
|
||||
if(ctx.query.state){
|
||||
if (ctx.query.state) {
|
||||
redirectURIWithCode.searchParams.set("state", ctx.query.state);
|
||||
}
|
||||
throw ctx.redirect(redirectURIWithCode.toString());
|
||||
|
||||
Reference in New Issue
Block a user