Count how many times a user started session by authTokens
I
Irakli Geleishvili
started a topic
almost 6 years ago
Hello,
If a user has 10 authTokens, does it mean this user had started 10 sessions?
Thanks!
Irakli
Best Answer
C
Customer Support
said
almost 6 years ago
Hi Irakli,
Generally yes, an auth-token is generated on Successful Authentication and stored against the player document. However, auth-tokens can be retired, so relying on the amount of auth-tokens on the player document to determine how many sessions they have started would not be advised. If you would like to accomplish this another way, might I suggest storing a "playerSessions" attribute on the players privateData, a number that you would increment by 1 in the "Player Connected" or "AuthenticationResponse" Cloud Code scripts.
-Pádraig
1 Comment
Customer Support
said
almost 6 years ago
Answer
Hi Irakli,
Generally yes, an auth-token is generated on Successful Authentication and stored against the player document. However, auth-tokens can be retired, so relying on the amount of auth-tokens on the player document to determine how many sessions they have started would not be advised. If you would like to accomplish this another way, might I suggest storing a "playerSessions" attribute on the players privateData, a number that you would increment by 1 in the "Player Connected" or "AuthenticationResponse" Cloud Code scripts.
Irakli Geleishvili
Hello,
If a user has 10 authTokens, does it mean this user had started 10 sessions?
Thanks!
Irakli
Hi Irakli,
Generally yes, an auth-token is generated on Successful Authentication and stored against the player document. However, auth-tokens can be retired, so relying on the amount of auth-tokens on the player document to determine how many sessions they have started would not be advised. If you would like to accomplish this another way, might I suggest storing a "playerSessions" attribute on the players privateData, a number that you would increment by 1 in the "Player Connected" or "AuthenticationResponse" Cloud Code scripts.
-Pádraig
Customer Support
Hi Irakli,
Generally yes, an auth-token is generated on Successful Authentication and stored against the player document. However, auth-tokens can be retired, so relying on the amount of auth-tokens on the player document to determine how many sessions they have started would not be advised. If you would like to accomplish this another way, might I suggest storing a "playerSessions" attribute on the players privateData, a number that you would increment by 1 in the "Player Connected" or "AuthenticationResponse" Cloud Code scripts.
-Pádraig
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics