[#335] added Discord OAuth2 provider

This commit is contained in:
Gani Georgiev committed 2022-08-21 20:04:38 +03:00
1 parent 0b8c7f6883
commit 49b084cf50
18 files changed
+246 -149

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ func (api *userApi) authMethods(c echo.Context) error {
}
state := security.RandomString(30)
codeVerifier := security.RandomString(30)
codeVerifier := security.RandomString(43)
codeChallenge := security.S256Challenge(codeVerifier)
codeChallengeMethod := "S256"
result.AuthProviders = append(result.AuthProviders, providerInfo{