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

Managing game accounts #2

Open
ninegua opened this issue Jul 7, 2020 · 1 comment
Open

Managing game accounts #2

ninegua opened this issue Jul 7, 2020 · 1 comment

Comments

@ninegua
Copy link
Owner

ninegua commented Jul 7, 2020

Now that the game is playable on both desktop & mobile, the user experience of switching browsers is not great, because dfx uses browser's localstorage to store user identity (keypairs), and there is no convenient way to use the same identity across different browsers. We need a solution to allow players to log into their accounts, regardless of their devices.

@ninegua
Copy link
Owner Author

ninegua commented Aug 1, 2020

One solution is to offer user to "lock" account on an existing browser, and then "unlock" it from another one, using a temporary passcode. Of course the passcode has to be entered by the user, and hashed on the client side, before being recorded on the server. This is similar to introducing a password, except that it is temporary, and it maintains the "one device <-> one user" mapping.

An alternative is to support "many devices <-> one user", but still maintain "one device <-> one game". The operation wouldn't be "lock/unlock", but more like "authorize"or something similar. Then the passcode can be automatically generated, or even a QR code.

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

No branches or pull requests

1 participant