[WIP] music platform user data scraper
teal-fm atproto
32
fork

Configure Feed

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

at ad64dbd4c0a5977a1d860481ec9f764487f2b7a8 20 lines 599 B view raw
1package oauth 2 3import ( 4 "net/http" 5) 6 7type AuthService interface { 8 // inits the login flow for the service 9 HandleLogin(w http.ResponseWriter, r *http.Request) 10 // handles the callback for the provider. is responsible for inserting 11 // sessions in the db 12 HandleCallback(w http.ResponseWriter, r *http.Request) (int64, error) 13} 14 15// optional but recommended 16type TokenReceiver interface { 17 // stores the access token in the db 18 // if there is a session, will associate the token with the session 19 SetAccessToken(token string, refreshToken string, currentId int64, hasSession bool) (int64, error) 20}