Open platform to collect and prioritize feedback
chore: remove deprecated func
goenning707fa1f05f4a
diff --git a/app/services/oauth/oauth.go b/app/services/oauth/oauth.goindex 808559423..d4a4f639a 100644--- a/app/services/oauth/oauth.go+++ b/app/services/oauth/oauth.go@@ -2,6 +2,7 @@ package oauthimport ("context"+ "encoding/base64""fmt""net/url""strings"@@ -18,7 +19,6 @@ import ("github.com/getfider/fider/app/pkg/jsonq""github.com/getfider/fider/app/pkg/validate""github.com/getfider/fider/app/pkg/web"- "github.com/golang-jwt/jwt/v4""golang.org/x/oauth2""golang.org/x/oauth2/facebook""golang.org/x/oauth2/github"@@ -213,7 +213,7 @@ func getOAuthRawProfile(ctx context.Context, q *query.GetOAuthRawProfile) errorreturn errors.New("AccessToken is not JWT")}- body, _ := jwt.DecodeSegment(parts[1])+ body, _ := base64.RawURLEncoding.DecodeString(parts[1])q.Result = string(body)return nil}