By using a PostLogin Action, you can make a call to the GraphQL API in order to check if the user is a sponsor of Github and allow them access to the application.
exports.onExecutePostLogin = async (event, api) => {
//login that retrieves user's sponsor status comes here
if(event.connection.strategy ==="github"){
if(!isGitHubSponsor){
api.deny.access("Only Github sponors are allowed")
}
}
}
If you have any other questions, feel free to leave a reply or post again on the community!