this repo has no description
1package session 2 3import ( 4 "github.com/bluesky-social/indigo/atproto/auth/oauth" 5 toauth "tangled.org/core/appview/oauth" 6) 7 8// Session is a lightweight wrapper over indigo-oauth ClientSession 9type Session struct { 10 *oauth.ClientSession 11} 12 13func New(atSess *oauth.ClientSession) Session { 14 return Session{ 15 atSess, 16 } 17} 18 19func (s *Session) User() *toauth.User { 20 return &toauth.User{ 21 Did: string(s.Data.AccountDID), 22 Pds: s.Data.HostURL, 23 } 24}