mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-25 03:47:52 +00:00
cleanup
This commit is contained in:
@@ -107,11 +107,6 @@ export default async function Page({
|
||||
.then((resp) => {
|
||||
const { idpInformation, userId } = resp;
|
||||
|
||||
console.log(
|
||||
"idpInformation",
|
||||
`userId:'${userId}'`,
|
||||
JSON.stringify(idpInformation),
|
||||
);
|
||||
if (idpInformation) {
|
||||
// handle login
|
||||
if (userId) {
|
||||
|
@@ -100,14 +100,11 @@ export async function GET(request: NextRequest) {
|
||||
}
|
||||
|
||||
if (authRequestId) {
|
||||
console.log(`Login with authRequest: ${authRequestId}`);
|
||||
const { authRequest } = await getAuthRequest({ authRequestId });
|
||||
|
||||
let organization = "";
|
||||
let idpId = "";
|
||||
|
||||
console.log(`AuthRequest: ${JSON.stringify(authRequest)}`);
|
||||
|
||||
if (authRequest?.scope) {
|
||||
const orgScope = authRequest.scope.find((s: string) =>
|
||||
ORG_SCOPE_REGEX.test(s),
|
||||
|
Reference in New Issue
Block a user