question

Mohamed Moner avatar image
Mohamed Moner asked

duplicate login question

hi

i have a question regarding user login

right now i'm working on a game with a login method similar to clash royal

in the main scene i authenticate a player using device id then the player can link his facebook account to this account

but right now every time i go back to the main scene again we go through the device authentication again

is that a problem or the duplicate login doesn't count?

and will it return login success or it will throw an error?

also should i link the facebook account every time or only once ?

thanks and best regards

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Marcus Nixon avatar image
Marcus Nixon answered

Hi Mohamed,

Every time a player logs in, they are given a different session ticket which is used to make subsequent API calls. If going back to your main scene logs the player in, perhaps putting in some type of check to see if the player is logged in would be more efficient. The logins should be successful. The Facebook account should only need to be linked once.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mohamed Moner avatar image Mohamed Moner commented ·

thank you so much that was very helpful

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.