Skip to content

Commit 7f2d3ce

Browse files
committed
remove duplicate TokenInfo initialization
1 parent 06f5cb3 commit 7f2d3ce

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

manage/manager.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,6 @@ func (m *Manager) GenerateAccessToken(gt oauth2.GrantType, tgr *oauth2.TokenGene
311311
err = terr
312312
return
313313
}
314-
ti.SetClientID(tgr.ClientID)
315-
ti.SetUserID(tgr.UserID)
316-
ti.SetRedirectURI(tgr.RedirectURI)
317-
ti.SetScope(tgr.Scope)
318314
ti.SetAccessCreateAt(td.CreateAt)
319315
ti.SetAccess(av)
320316
// set access token expires

0 commit comments

Comments
 (0)