611 B
611 B
title
| title |
|---|
| Authorization |
GET /auth/{provider}/login?from=http://url&site=site_id&session=1- perform "social", anonymous or email login with one of supported providers and redirect tourl. Presence ofsession(any non-zero value) change the default cookie expiration and makes them session-onlyGET /auth/logout- logout
type User struct {
Name string `json:"name"`
ID string `json:"id"`
Picture string `json:"picture"`
Admin bool `json:"admin"`
Blocked bool `json:"block"`
Verified bool `json:"verified"`
}