Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 1d49fa9

Browse files
committed
lint fixes
1 parent 5b34f5d commit 1d49fa9

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

projects/cryptr/cryptr-angular/src/lib/account-access-button/account-access-button.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ export class AccountAccessButtonComponent implements OnChanges {
355355

356356
/** @ignore */
357357
signInWithRedirect(): void {
358-
this.auth.signInWithRedirect(DEFAULT_SCOPE, this.locale, this.redirectUri);
358+
// this.auth.signInWithRedirect(DEFAULT_SCOPE, this.locale, this.redirectUri);
359+
this.auth.signInWithDomain(null, { locale: DEFAULT_SCOPE });
359360
}
360361

361362
/** @ignore */

projects/cryptr/cryptr-angular/src/lib/auth.service.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class AuthService implements OnDestroy {
174174
* @returns Observable of the authentication process for an Organization user
175175
*/
176176
public signInWithDomain(orgDomain?: string, options?: SsoSignOptsAttrs): Observable<void> {
177-
return from(this.cryptrClient.signInWithDomain(orgDomain, options))
177+
return from(this.cryptrClient.signInWithDomain(orgDomain, options));
178178
}
179179

180180
/**
@@ -195,7 +195,7 @@ export class AuthService implements OnDestroy {
195195
* @returns Observable of the authentication process for an Organization user
196196
*/
197197
public signInWithEmail(email: string, options?: SsoSignOptsAttrs): Observable<void> {
198-
return from(this.cryptrClient.signInWithEmail(email, options))
198+
return from(this.cryptrClient.signInWithEmail(email, options));
199199
}
200200

201201
/**
@@ -474,7 +474,7 @@ export class AuthService implements OnDestroy {
474474
return true;
475475
} else {
476476
if (preferedAuthMethod === AuthnMethod.Gateway) {
477-
this.signInWithSsoGateway(null, { locale: defaultLocale || 'en' });
477+
this.signInWithDomain(null, { locale: defaultLocale || 'en' });
478478
} else {
479479
this.signInWithMagicLink();
480480
}
@@ -487,10 +487,12 @@ export class AuthService implements OnDestroy {
487487
const { audience, default_locale } = this.config();
488488
const redirectUri = audience.concat(stateUrl || '');
489489

490-
if (this.configFactory.get().has_ssr) {
491-
return this.signInWithRedirect(DEFAULT_SCOPE, default_locale, redirectUri);
492-
} else {
493-
return this.signInWithRedirect();
494-
}
490+
// if (this.configFactory.get().has_ssr) {
491+
// return this.signInWithRedirect(DEFAULT_SCOPE, default_locale, redirectUri);
492+
// } else {
493+
// return this.signInWithRedirect();
494+
// }
495+
496+
return this.signInWithDomain(null, { locale: default_locale });
495497
}
496498
}

projects/playground/src/app/pages/home/home.component.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ export class HomeComponent implements OnInit {
2121
this.auth.signUpWithRedirect();
2222
}
2323

24-
signinWithSso(): void {
25-
this.auth.signInWithSso(environment.idpIds[0]);
26-
}
24+
// signinWithSso(): void {
25+
// this.auth.signInWithSso(environment.idpIds[0]);
26+
// }
2727

28-
public bareSigninWithSsoGateway(): void {
29-
this.auth.signInWithSsoGateway(null, { locale: 'fr' });
30-
}
31-
public simpleSigninWithSsoGateway(): void {
32-
this.auth.signInWithSsoGateway(environment.idpIds[0], { locale: 'fr' });
33-
}
34-
public multiSigninWithSsoGateway(): void {
35-
this.auth.signInWithSsoGateway(environment.idpIds, { locale: 'fr' });
36-
}
28+
// public bareSigninWithSsoGateway(): void {
29+
// this.auth.signInWithSsoGateway(null, { locale: 'fr' });
30+
// }
31+
// public simpleSigninWithSsoGateway(): void {
32+
// this.auth.signInWithSsoGateway(environment.idpIds[0], { locale: 'fr' });
33+
// }
34+
// public multiSigninWithSsoGateway(): void {
35+
// this.auth.signInWithSsoGateway(environment.idpIds, { locale: 'fr' });
36+
// }
3737

3838
public signInWithDomain(orgDomain?: string): void {
39-
this.auth.signInWithDomain('orgDomain', { locale: 'fr' })
39+
this.auth.signInWithDomain('orgDomain', { locale: 'fr' });
4040
}
4141

4242
public signInWithEmail(): void {
43-
this.auth.signInWithEmail('[email protected]', { locale: 'fr' })
43+
this.auth.signInWithEmail('[email protected]', { locale: 'fr' });
4444
}
4545
}

0 commit comments

Comments
 (0)