wip
This commit is contained in:
@@ -60,10 +60,14 @@ export class InMemoryAuthService implements AuthService {
|
||||
const provider = new IracingDemoIdentityProviderAdapter();
|
||||
const useCase = new StartAuthUseCase(provider);
|
||||
|
||||
const command: StartAuthCommandDTO = {
|
||||
provider: 'IRACING_DEMO',
|
||||
returnTo,
|
||||
};
|
||||
const command: StartAuthCommandDTO = returnTo
|
||||
? {
|
||||
provider: 'IRACING_DEMO',
|
||||
returnTo,
|
||||
}
|
||||
: {
|
||||
provider: 'IRACING_DEMO',
|
||||
};
|
||||
|
||||
return useCase.execute(command);
|
||||
}
|
||||
@@ -77,12 +81,18 @@ export class InMemoryAuthService implements AuthService {
|
||||
const sessionPort = new CookieIdentitySessionAdapter();
|
||||
const useCase = new HandleAuthCallbackUseCase(provider, sessionPort);
|
||||
|
||||
const command: AuthCallbackCommandDTO = {
|
||||
provider: 'IRACING_DEMO',
|
||||
code: params.code,
|
||||
state: params.state,
|
||||
returnTo: params.returnTo,
|
||||
};
|
||||
const command: AuthCallbackCommandDTO = params.returnTo
|
||||
? {
|
||||
provider: 'IRACING_DEMO',
|
||||
code: params.code,
|
||||
state: params.state,
|
||||
returnTo: params.returnTo,
|
||||
}
|
||||
: {
|
||||
provider: 'IRACING_DEMO',
|
||||
code: params.code,
|
||||
state: params.state,
|
||||
};
|
||||
|
||||
return useCase.execute(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user