Merged in feat/SW-3549-handle-unlinked-account (pull request #3019)
fix(SW-3549): update social session management functions for clarity and consistency * refactor(SW-3549): rename session management functions for clarity and consistency * merge Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -6,3 +6,13 @@ export enum LoginTypeEnum {
|
||||
"eurobonus" = "eurobonus",
|
||||
}
|
||||
export type LoginType = keyof typeof LoginTypeEnum
|
||||
export type ScandicLoginType = Exclude<LoginType, "eurobonus">
|
||||
export type PartnerLoginType = Exclude<LoginType, ScandicLoginType>
|
||||
|
||||
export const partnerLoginTypes: PartnerLoginType[] = [LoginTypeEnum.eurobonus]
|
||||
|
||||
export function isPartnerLoginType(
|
||||
loginType: LoginType
|
||||
): loginType is PartnerLoginType {
|
||||
return partnerLoginTypes.includes(loginType as PartnerLoginType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user