Versions in this module Expand all Collapse all v0 v0.6.0 Dec 20, 2022 Changes in this version + const TwitterAuthURL + const TwitterTokenURL + var TwitterScopes = []string + func Install(mod string, db *orm.DB) + type GetUserInfoFunc func(*oauth2.Token) (T, error) + type OAuth struct + func New(s *web.Server, prefix orm.Prefix, db *orm.DB, c *oauth2.Config, ...) *OAuth[T] + func (o *OAuth[T]) AuthURL() string + func (o *OAuth[T]) Delete(uid int64) error + func (o *OAuth[T]) Identity(uid int64) (string, bool) + func (o *OAuth[T]) Valid(state, code string) (int64, string, bool) + type TwitterUserInfo struct + ID string + Name string + func TwitterGetUserInfo(token *oauth2.Token) (*TwitterUserInfo, error) + func (info *TwitterUserInfo) Identity() string + type UserInfo interface + Identity func() string