MCPcopy Create free account
hub / github.com/dank/rlapi / AuthenticateWithCode

Method AuthenticateWithCode

egs.go:87–93  ·  view source on GitHub ↗

AuthenticateWithCode authenticates with EGS using an authorization code

(authCode string)

Source from the content-addressed store, hash-verified

85
86// AuthenticateWithCode authenticates with EGS using an authorization code
87func (e *EGS) AuthenticateWithCode(authCode string) (*TokenResponse, error) {
88 return e.requestToken(map[string]string{
89 "grant_type": "authorization_code",
90 "code": authCode,
91 "token_type": "eg1",
92 })
93}
94
95// AuthenticateWithRefreshToken authenticates with EGS using a refresh token
96func (e *EGS) AuthenticateWithRefreshToken(refreshToken string) (*TokenResponse, error) {

Callers 2

mainFunction · 0.95
authenticateWithCodeFunction · 0.80

Calls 1

requestTokenMethod · 0.95

Tested by

no test coverage detected