Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Amali Delauney · May 20 at 05:42 AM ·

Same login credentials create different account,Same login credentials creates different account

I'm having a problem where a player will log in and a new account will be created for them even though their account already exists. Players log in using their deviceUniqueIdentifier so I don't understand why a new account would be generated for them if they already have one. I'm pretty sure using the deviceUniqueIdentifier should mean there would be one account created per device.

This problem results in their leaderboard score showing up twice since both accounts have identical data. I have been manually deleting duplicate accounts thus far, but does anyone know a fix for this?

,

I'm having a problem where a player will log in and a new account will be created for them even though their account already exists. Players log in using their deviceUniqueIdentifier so I don't understand why a new account would be generated for them if they already have one.

This results in their leaderboard score showing up twice since both accounts have identical data. I have been manually deleting duplicate accounts thus far, but does anyone know a fix for this?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Made Wang · May 20 at 08:05 AM

When logging in by device ID, if the device ID already has a linked account, it will log in to this account instead of creating a new one. Can you provide detailed steps to reproduce this issue, such as the code snippet you use to log in? Also, please check if there are some invisible characters in your device ID, such as zero-width spaces.

Comment

People who like this

0 Show 6 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Amali Delauney · May 20 at 05:12 PM 0
Share

I've never been able to reproduce the issue myself. My ID doesn't have any invisible characters, just numbers and letters. This is the code used to log in.

var request = new LoginWithCustomIDRequest {
       CustomId = SystemInfo.deviceUniqueIdentifier,
       CreateAccount = true
};
PlayFabClientAPI.LoginWithCustomID(request, OnLoginSuccess, OnError);

When players log in, their save data is uploaded to the account. So I can tell when two accounts are from the same person becuase their information is identical.

avatar image Made Wang Amali Delauney · May 23 at 06:47 AM 0
Share

Can you provide your Title Id? And you should check if their device IDs are the same in [Player]->Overview->Identities.

avatar image Amali Delauney Made Wang · Jun 02 at 06:13 PM 0
Share

I believe the title id is 75D55. The player IDs of the two accounts are also not the same.

Show more comments
avatar image Made Wang Amali Delauney · Jun 07 at 08:26 AM 0
Share

Since you use the deviceUniqueIdentifier as the CustomID to log in, the difference in the CustomID means that the two accounts are from two different devices.

You should check your code and the data that was uploaded. You can call Admin API GetPlayerProfile and GetUserAccountInfo to compare their data.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    12 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges