Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2FA/MFA type for AuthenticationApi.getCurrentUser #5

Open
felixfong227 opened this issue Mar 16, 2023 · 0 comments
Open

2FA/MFA type for AuthenticationApi.getCurrentUser #5

felixfong227 opened this issue Mar 16, 2023 · 0 comments

Comments

@felixfong227
Copy link

felixfong227 commented Mar 16, 2023

The current type of AuthenticationApi.getCurrentUser return type did not cater for TOTP flow.

Email OTP flow response:

{
  "acceptedTOSVersion": 7,
  "accountDeletionDate": "2023-03-16",
  "accountDeletionLog": [
    {
      "message": "Deletion requested",
      "deletionScheduled": "2023-03-16T08:10:07.859Z",
      "dateTime": "2023-03-16T08:10:07.859Z"
    }
  ],
  "activeFriends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "allowAvatarCopying": true,
  "bio": "string",
  "bioLinks": [
    "string"
  ],
  "currentAvatar": "avtr_912d66a4-4714-43b8-8407-7de2cafbf55b",
  "currentAvatarAssetUrl": "string",
  "currentAvatarImageUrl": "https://api.vrchat.cloud/api/1/file/file_ae46d521-7281-4b38-b365-804b32a1d6a7/1/file",
  "currentAvatarThumbnailImageUrl": "https://api.vrchat.cloud/api/1/image/file_aae83ed9-d42d-4d72-9f4b-9f1e41ed17e1/1/256",
  "date_joined": "2023-03-16",
  "developerType": "none",
  "displayName": "string",
  "emailVerified": true,
  "fallbackAvatar": "avtr_912d66a4-4714-43b8-8407-7de2cafbf55b",
  "friendKey": "string",
  "friends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "hasBirthday": true,
  "hasEmail": true,
  "hasLoggedInFromClient": true,
  "hasPendingEmail": true,
  "homeLocation": "wrld_ba913a96-fac4-4048-a062-9aa5db092812",
  "id": "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469",
  "isFriend": false,
  "last_login": "2023-03-16T08:10:07.859Z",
  "last_platform": "standalonewindows",
  "obfuscatedEmail": "string",
  "obfuscatedPendingEmail": "string",
  "oculusId": "string",
  "offlineFriends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "onlineFriends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "pastDisplayNames": [
    {
      "displayName": "string",
      "updated_at": "2023-03-16T08:10:07.859Z"
    }
  ],
  "profilePicOverride": "string",
  "state": "offline",
  "status": "offline",
  "statusDescription": "string",
  "statusFirstTime": true,
  "statusHistory": [
    "string"
  ],
  "steamDetails": {},
  "steamId": "string",
  "tags": [
    "string"
  ],
  "twoFactorAuthEnabled": true,
  "twoFactorAuthEnabledDate": "2023-03-16T08:10:07.859Z",
  "unsubscribe": true,
  "userIcon": "string",
+  "requiresTwoFactorAuth": ["emailOtp"]
}

TOTP flow:

{
  "acceptedTOSVersion": 7,
  "accountDeletionDate": "2023-03-16",
  "accountDeletionLog": [
    {
      "message": "Deletion requested",
      "deletionScheduled": "2023-03-16T08:10:07.859Z",
      "dateTime": "2023-03-16T08:10:07.859Z"
    }
  ],
  "activeFriends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "allowAvatarCopying": true,
  "bio": "string",
  "bioLinks": [
    "string"
  ],
  "currentAvatar": "avtr_912d66a4-4714-43b8-8407-7de2cafbf55b",
  "currentAvatarAssetUrl": "string",
  "currentAvatarImageUrl": "https://api.vrchat.cloud/api/1/file/file_ae46d521-7281-4b38-b365-804b32a1d6a7/1/file",
  "currentAvatarThumbnailImageUrl": "https://api.vrchat.cloud/api/1/image/file_aae83ed9-d42d-4d72-9f4b-9f1e41ed17e1/1/256",
  "date_joined": "2023-03-16",
  "developerType": "none",
  "displayName": "string",
  "emailVerified": true,
  "fallbackAvatar": "avtr_912d66a4-4714-43b8-8407-7de2cafbf55b",
  "friendKey": "string",
  "friends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "hasBirthday": true,
  "hasEmail": true,
  "hasLoggedInFromClient": true,
  "hasPendingEmail": true,
  "homeLocation": "wrld_ba913a96-fac4-4048-a062-9aa5db092812",
  "id": "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469",
  "isFriend": false,
  "last_login": "2023-03-16T08:10:07.859Z",
  "last_platform": "standalonewindows",
  "obfuscatedEmail": "string",
  "obfuscatedPendingEmail": "string",
  "oculusId": "string",
  "offlineFriends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "onlineFriends": [
    "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"
  ],
  "pastDisplayNames": [
    {
      "displayName": "string",
      "updated_at": "2023-03-16T08:10:07.859Z"
    }
  ],
  "profilePicOverride": "string",
  "state": "offline",
  "status": "offline",
  "statusDescription": "string",
  "statusFirstTime": true,
  "statusHistory": [
    "string"
  ],
  "steamDetails": {},
  "steamId": "string",
  "tags": [
    "string"
  ],
  "twoFactorAuthEnabled": true,
  "twoFactorAuthEnabledDate": "2023-03-16T08:10:07.859Z",
  "unsubscribe": true,
  "userIcon": "string",
+  "requiresTwoFactorAuth": ["otp", "totp"]
}

Maybe we need to update the OpenAPI spcs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant