pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.56k stars 137 forks source link

Error using already used personal token on gitlab #82

Closed shreyas1599 closed 4 years ago

shreyas1599 commented 4 years ago

I didn't realise that you cannot use the same token for the same app on different devices for gitlab. When a wrong token is used, as expected a 404 error is returned. But when you use an already used token the following error occurs. The only way to resolve this is to uninstall and re-install the app. Probably a gitlab bug but we should handle the error better and allow the user to enter a different token.

image

pd4d10 commented 4 years ago

I could not reproduce it. If an invalid token submitted:

image

shreyas1599 commented 4 years ago

Not an invalid token. Use a token which was already used on another device. Should I share my token here?

pd4d10 commented 4 years ago

I don't think so. That would be insecure.

shreyas1599 commented 4 years ago

You could try the token you used on an actual device on a simulator or the other way round?

pd4d10 commented 4 years ago

I commented on the PR you submitted. We could discuss there