@@ -2,7 +2,7 @@ import { Provider } from '@angular/core';
22import { TranslocoService } from '@jsverse/transloco' ;
33import { FilesService } from '@nestjs-mod-sso/files-angular' ;
44import {
5- RestSdkAngularService ,
5+ SsoRestSdkAngularService ,
66 SsoUserDtoInterface ,
77 TokensResponseInterface ,
88} from '@nestjs-mod/sso-rest-sdk-angular' ;
@@ -28,7 +28,7 @@ import { catchError, map, mergeMap, Observable, of } from 'rxjs';
2828
2929export class SsoIntegrationConfiguration implements SsoConfiguration {
3030 constructor (
31- private readonly restSdkAngularService : RestSdkAngularService ,
31+ private readonly ssoRestSdkAngularService : SsoRestSdkAngularService ,
3232 private readonly filesService : FilesService ,
3333 private readonly translocoService : TranslocoService ,
3434 private readonly tokensService : TokensService ,
@@ -56,7 +56,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
5656 }
5757
5858 oAuthProviders ( ) : Observable < OAuthProvider [ ] > {
59- return this . restSdkAngularService
59+ return this . ssoRestSdkAngularService
6060 . getSsoApi ( )
6161 . ssoOAuthControllerOauthProviders ( ) ;
6262 }
@@ -67,7 +67,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
6767 } : OAuthVerificationInput ) : Observable < SsoUserAndTokens > {
6868 return this . fingerprintService . getFingerprint ( ) . pipe (
6969 mergeMap ( ( fingerprint ) =>
70- this . restSdkAngularService
70+ this . ssoRestSdkAngularService
7171 . getSsoApi ( )
7272 . ssoOAuthControllerOauthVerification ( {
7373 fingerprint,
@@ -85,7 +85,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
8585
8686 logout ( ) : Observable < void | null > {
8787 const refreshToken = this . tokensService . getRefreshToken ( ) ;
88- return this . restSdkAngularService
88+ return this . ssoRestSdkAngularService
8989 . getSsoApi ( )
9090 . ssoControllerSignOut (
9191 refreshToken
@@ -102,7 +102,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
102102 }
103103
104104 getProfile ( ) : Observable < SsoUser | undefined > {
105- return this . restSdkAngularService
105+ return this . ssoRestSdkAngularService
106106 . getSsoApi ( )
107107 . ssoControllerProfile ( )
108108 . pipe (
@@ -154,7 +154,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
154154 return of ( undefined ) ;
155155 } ) ,
156156 mergeMap ( ( picture ) => {
157- return this . restSdkAngularService
157+ return this . ssoRestSdkAngularService
158158 . getSsoApi ( )
159159 . ssoControllerUpdateProfile ( {
160160 birthdate : data . birthdate ,
@@ -169,7 +169,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
169169 } ) ;
170170 } ) ,
171171 mergeMap ( ( ) =>
172- this . restSdkAngularService . getSsoApi ( ) . ssoControllerProfile ( )
172+ this . ssoRestSdkAngularService . getSsoApi ( ) . ssoControllerProfile ( )
173173 ) ,
174174 mergeMap ( ( newData ) => {
175175 if (
@@ -191,7 +191,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
191191 const refreshToken = this . tokensService . getRefreshToken ( ) ;
192192 return this . fingerprintService . getFingerprint ( ) . pipe (
193193 mergeMap ( ( fingerprint ) =>
194- this . restSdkAngularService
194+ this . ssoRestSdkAngularService
195195 . getSsoApi ( )
196196 . ssoControllerRefreshTokens ( {
197197 ...( refreshToken
@@ -224,7 +224,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
224224 }
225225 return this . fingerprintService . getFingerprint ( ) . pipe (
226226 mergeMap ( ( fingerprint ) =>
227- this . restSdkAngularService
227+ this . ssoRestSdkAngularService
228228 . getSsoApi ( )
229229 . ssoControllerSignUp ( {
230230 email,
@@ -250,7 +250,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
250250 }
251251 return this . fingerprintService . getFingerprint ( ) . pipe (
252252 mergeMap ( ( fingerprint ) =>
253- this . restSdkAngularService
253+ this . ssoRestSdkAngularService
254254 . getSsoApi ( )
255255 . ssoControllerSignIn ( {
256256 email,
@@ -274,7 +274,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
274274 }
275275 return this . fingerprintService . getFingerprint ( ) . pipe (
276276 mergeMap ( ( fingerprint ) =>
277- this . restSdkAngularService
277+ this . ssoRestSdkAngularService
278278 . getSsoApi ( )
279279 . ssoControllerCompleteSignUp ( {
280280 code,
@@ -305,7 +305,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
305305 }
306306 return this . fingerprintService . getFingerprint ( ) . pipe (
307307 mergeMap ( ( fingerprint ) =>
308- this . restSdkAngularService
308+ this . ssoRestSdkAngularService
309309 . getSsoApi ( )
310310 . ssoControllerCompleteForgotPassword ( {
311311 password,
@@ -328,7 +328,7 @@ export class SsoIntegrationConfiguration implements SsoConfiguration {
328328 if ( ! email ) {
329329 throw new Error ( 'email not set' ) ;
330330 }
331- return this . restSdkAngularService
331+ return this . ssoRestSdkAngularService
332332 . getSsoApi ( )
333333 . ssoControllerForgotPassword ( {
334334 email,
@@ -343,7 +343,7 @@ export function provideSsoConfiguration(): Provider {
343343 provide : SSO_CONFIGURATION_TOKEN ,
344344 useClass : SsoIntegrationConfiguration ,
345345 deps : [
346- RestSdkAngularService ,
346+ SsoRestSdkAngularService ,
347347 FilesService ,
348348 TranslocoService ,
349349 TokensService ,
0 commit comments