wip
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import type { AuthProviderDTO } from './AuthProviderDTO';
|
||||
|
||||
export interface AuthCallbackCommandDTO {
|
||||
provider: AuthProviderDTO;
|
||||
code: string;
|
||||
state: string;
|
||||
returnTo?: string;
|
||||
}
|
||||
1
packages/identity/application/dto/AuthProviderDTO.ts
Normal file
1
packages/identity/application/dto/AuthProviderDTO.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type AuthProviderDTO = 'IRACING_DEMO';
|
||||
8
packages/identity/application/dto/AuthSessionDTO.ts
Normal file
8
packages/identity/application/dto/AuthSessionDTO.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { AuthenticatedUserDTO } from './AuthenticatedUserDTO';
|
||||
|
||||
export interface AuthSessionDTO {
|
||||
user: AuthenticatedUserDTO;
|
||||
issuedAt: number;
|
||||
expiresAt: number;
|
||||
token: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export interface AuthenticatedUserDTO {
|
||||
id: string;
|
||||
displayName: string;
|
||||
email?: string;
|
||||
iracingCustomerId?: string;
|
||||
primaryDriverId?: string;
|
||||
avatarUrl?: string;
|
||||
}
|
||||
4
packages/identity/application/dto/IracingAuthStateDTO.ts
Normal file
4
packages/identity/application/dto/IracingAuthStateDTO.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface IracingAuthStateDTO {
|
||||
state: string;
|
||||
returnTo?: string;
|
||||
}
|
||||
6
packages/identity/application/dto/StartAuthCommandDTO.ts
Normal file
6
packages/identity/application/dto/StartAuthCommandDTO.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { AuthProviderDTO } from './AuthProviderDTO';
|
||||
|
||||
export interface StartAuthCommandDTO {
|
||||
provider: AuthProviderDTO;
|
||||
returnTo?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user