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

Add the ability to unlink a discord account #2243

Closed
flacial opened this issue Aug 31, 2022 · 0 comments · Fixed by #2259
Closed

Add the ability to unlink a discord account #2243

flacial opened this issue Aug 31, 2022 · 0 comments · Fixed by #2259
Assignees
Labels
enhancement New feature or request

Comments

@flacial
Copy link
Member

flacial commented Aug 31, 2022

Problem

Students may want to unlink a discord account and link another one.

Solution

Create a resolver that once called unlinks the discord account by setting the discordId, discordRefreshToken, discordAccessToken, and discordAccessTokenExpires to null.

For connivence, we don't want the students to clear a value from local storage in order for the connect-to-discord modal to appear. Add a button in the user profile page that once clicked unlinks the discord account. If no account is linked, it'll show Connect to discord.

@flacial flacial added the enhancement New feature or request label Aug 31, 2022
@flacial flacial self-assigned this Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant