Download model/oauth2bind.go from ls-ylm/ls: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/ls-ylm/ls/resolve/main/model/oauth2bind.go
- Command line
-
hf download hf://spaces/ls-ylm/ls/model/oauth2bind.go
-
curl -L -o oauth2bind.go https://huggingface.co/spaces/ls-ylm/ls/resolve/main/model/oauth2bind.go
465 Bytes
| package model | |
| type Oauth2Bind struct { | |
| Common | |
| UserID uint64 `gorm:"uniqueIndex:u_p_o" json:"user_id,omitempty"` | |
| Provider string `gorm:"uniqueIndex:u_p_o" json:"provider,omitempty"` | |
| OpenID string `gorm:"uniqueIndex:u_p_o" json:"open_id,omitempty"` | |
| } | |
| type Oauth2LoginType uint8 | |
| const ( | |
| _ Oauth2LoginType = iota | |
| RTypeLogin | |
| RTypeBind | |
| ) | |
| type Oauth2State struct { | |
| Action Oauth2LoginType | |
| Provider string | |
| State string | |
| RedirectURL string | |
| } | |