Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
remove unused code
Browse files
src/routes/api/auth/login/+server.ts
CHANGED
@@ -6,15 +6,4 @@ export async function GET() {
|
|
6 |
const REDIRECT_URI = `https://${first_space_host}/login/callback`
|
7 |
|
8 |
throw redirect(302, `https://huggingface.co/oauth/authorize?client_id=${process.env.OAUTH_CLIENT_ID}&redirect_uri=${REDIRECT_URI}&scope=openid%20profile&state=STATE&response_type=code`)
|
9 |
-
|
10 |
-
// return {
|
11 |
-
// headers: {
|
12 |
-
// Location: `https://huggingface.co/oauth/authorize?client_id=${process.env.OAUTH_CLIENT_ID}&redirect_uri=${REDIRECT_URI}&scope=openid%20profile&state=STATE&response_type=code`,
|
13 |
-
// status: 302
|
14 |
-
// }
|
15 |
-
// }
|
16 |
-
|
17 |
-
// return json({
|
18 |
-
// redirect: `https://huggingface.co/oauth/authorize?client_id=${process.env.OAUTH_CLIENT_ID}&redirect_uri=${REDIRECT_URI}&scope=openid%20profile&state=STATE&response_type=code`,
|
19 |
-
// })
|
20 |
}
|
|
|
6 |
const REDIRECT_URI = `https://${first_space_host}/login/callback`
|
7 |
|
8 |
throw redirect(302, `https://huggingface.co/oauth/authorize?client_id=${process.env.OAUTH_CLIENT_ID}&redirect_uri=${REDIRECT_URI}&scope=openid%20profile&state=STATE&response_type=code`)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
}
|