this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix refresh token bugs

+3 -2
+2 -1
atproto/auth/oauth/oauth.go
··· 639 639 sessData := ClientSessionData{ 640 640 AccountDID: accountDID, 641 641 SessionID: info.State, 642 - Scopes: strings.Split(tokenResp.Scope, " "), 643 642 HostURL: hostURL, 644 643 AuthServerURL: info.AuthServerURL, 644 + AuthServerTokenEndpoint: info.AuthServerTokenEndpoint, 645 + Scopes: strings.Split(tokenResp.Scope, " "), 645 646 AccessToken: tokenResp.AccessToken, 646 647 RefreshToken: tokenResp.RefreshToken, 647 648 DPoPAuthServerNonce: info.DPoPAuthServerNonce,
+1 -1
atproto/auth/oauth/session.go
··· 86 86 87 87 body := RefreshTokenRequest{ 88 88 ClientID: sess.Config.ClientID, 89 - GrantType: "authorization_code", 89 + GrantType: "refresh_token", 90 90 RefreshToken: sess.Data.RefreshToken, 91 91 } 92 92 tokenURL := sess.Data.AuthServerTokenEndpoint