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

Revoking App-Permissions and Re-Authorizing leads to an error #17

Open
BenniG82 opened this issue May 21, 2015 · 0 comments
Open

Revoking App-Permissions and Re-Authorizing leads to an error #17

BenniG82 opened this issue May 21, 2015 · 0 comments

Comments

@BenniG82
Copy link
Owner

Problem
The app tries to re-insert athlete information with the given athlete-id and the corresponding strava token. The problem occurs because of a unique-constraint on the athlete-id.

Quick Fix
Manually delete the old authorization information

delete FROM `user_token` where user_id = (select id from user u where u.athlete_id=[ATHLETE]);
delete FROM `user` where athlete_id=[ATHLETE];

Real Fix
Update the existing row to the new authorization code from strava

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