feat: sign up/log in with mastodon

This commit is contained in:
Sam 2023-03-16 15:50:39 +01:00
parent f087e9a29f
commit cf424d3ae4
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
8 changed files with 509 additions and 8 deletions

View file

@ -30,7 +30,7 @@ func (f FediverseApp) ClientConfig() *oauth2.Config {
AuthStyle: oauth2.AuthStyleInParams,
},
Scopes: []string{"read:accounts"},
RedirectURL: os.Getenv("BASE_URL") + "/auth/login/mastodon",
RedirectURL: os.Getenv("BASE_URL") + "/auth/login/mastodon/" + f.Instance,
}
// }