feat(auth): rename external ids to asid psid
This commit is contained in:
@@ -11,8 +11,8 @@ export type ExternalEntryTarget =
|
||||
|
||||
export interface ExternalEntryPayload {
|
||||
deviceId?: string | null;
|
||||
facebookId?: string | null;
|
||||
facebookAppId?: string | null;
|
||||
asid?: string | null;
|
||||
psid?: string | null;
|
||||
avatarUrl?: string | null;
|
||||
}
|
||||
|
||||
@@ -37,8 +37,8 @@ export function resolveExternalEntryTarget({
|
||||
|
||||
export async function persistExternalEntryPayload({
|
||||
deviceId,
|
||||
facebookId,
|
||||
facebookAppId,
|
||||
asid,
|
||||
psid,
|
||||
avatarUrl,
|
||||
}: ExternalEntryPayload): Promise<void> {
|
||||
const authStorage = AuthStorage.getInstance();
|
||||
@@ -48,11 +48,11 @@ export async function persistExternalEntryPayload({
|
||||
if (hasValue(deviceId)) {
|
||||
tasks.push(authStorage.setDeviceId(deviceId));
|
||||
}
|
||||
if (hasValue(facebookId)) {
|
||||
tasks.push(authStorage.setFacebookId(facebookId));
|
||||
if (hasValue(asid)) {
|
||||
tasks.push(authStorage.setAsid(asid));
|
||||
}
|
||||
if (hasValue(facebookAppId)) {
|
||||
tasks.push(authStorage.setFacebookAppId(facebookAppId));
|
||||
if (hasValue(psid)) {
|
||||
tasks.push(authStorage.setPsid(psid));
|
||||
}
|
||||
if (hasValue(avatarUrl)) {
|
||||
tasks.push(userStorage.setAvatarUrl(avatarUrl));
|
||||
|
||||
Reference in New Issue
Block a user