signUp event listener (Discord Auth)
I'm looking for a way to listen to an event fired after a user first does a "signUp/signIn" with an Auth provider, Discord in this instance.
I am using the guilds scope, and have written a function that will use the provider token returned by the sign in function, to request a users discord guilds but I would like to store some data based on what roles a user has in my discord guild and have that periodically update as their roles could change from time to time.
Any suggestions?
I am using the guilds scope, and have written a function that will use the provider token returned by the sign in function, to request a users discord guilds but I would like to store some data based on what roles a user has in my discord guild and have that periodically update as their roles could change from time to time.
Any suggestions?