Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) AdminCreateUser(req types.AdminCreateUserRequest) (*types.AdminCreateUserResponse, error)
- func (c *Client) AdminDeleteUser(userID string) error
- func (c *Client) AdminGetUser(userID string) (*types.AdminGetUserResponse, error)
- func (c *Client) AdminListUsers() (*types.AdminListUsersResponse, error)
- func (c *Client) AdminUpdateUser(userID string, updates types.AdminUpdateUserRequest) (*types.AdminUpdateUserResponse, error)
- func (c *Client) EnableTokenAutoRefresh(session types.Session)
- func (c *Client) ExchangeCode(code, codeVerifier string) (types.Session, error)
- func (c *Client) From(table string) *postgrest.QueryBuilder
- func (c *Client) GetUser() (*types.UserResponse, error)
- func (c *Client) HealthCheck() (*types.HealthCheckResponse, error)
- func (c *Client) Logout() error
- func (c *Client) RefreshToken(refreshToken string) (types.Session, error)
- func (c *Client) Rpc(name, count string, rpcBody interface{}) string
- func (c *Client) SignInWithEmailPassword(email, password string) (types.Session, error)
- func (c *Client) SignInWithPhonePassword(phone, password string) (types.Session, error)
- func (c *Client) SignInWithProvider(provider types.Provider, redirectTo string) (*types.AuthorizeResponse, error)
- func (c *Client) SignUp(email, password string, data map[string]interface{}) (*types.SignupResponse, error)
- func (c *Client) SignUpWithEmailOTP(email string, options *SignUpOptions) error
- func (c *Client) UpdateAuthSession(session types.Session)
- func (c *Client) UpdatePassword(newPassword string) error
- func (c *Client) UpdateUser(updates types.UpdateUserRequest) (*types.UpdateUserResponse, error)
- func (c *Client) VerifyEmailOTP(email, code string) (*types.Session, error)
- type ClientOptions
- type SignUpOptions
Constants ¶
View Source
const ( REST_URL = "/rest/v1" STORAGE_URL = "/storage/v1" AUTH_URL = "/auth/v1" FUNCTIONS_URL = "/functions/v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Storage *storage_go.Client
// Auth is an interface. We don't need a pointer to an interface.
Auth auth.Client
Functions *functions.Client
// contains filtered or unexported fields
}
func (*Client) AdminCreateUser ¶ added in v0.2.0
func (c *Client) AdminCreateUser(req types.AdminCreateUserRequest) (*types.AdminCreateUserResponse, error)
func (*Client) AdminDeleteUser ¶ added in v0.2.0
func (*Client) AdminGetUser ¶ added in v0.2.0
func (c *Client) AdminGetUser(userID string) (*types.AdminGetUserResponse, error)
func (*Client) AdminListUsers ¶ added in v0.2.0
func (c *Client) AdminListUsers() (*types.AdminListUsersResponse, error)
func (*Client) AdminUpdateUser ¶ added in v0.2.0
func (c *Client) AdminUpdateUser(userID string, updates types.AdminUpdateUserRequest) (*types.AdminUpdateUserResponse, error)
func (*Client) EnableTokenAutoRefresh ¶
---------------------------- Session Management ---------------------------- //
func (*Client) ExchangeCode ¶
func (*Client) GetUser ¶ added in v0.2.0
func (c *Client) GetUser() (*types.UserResponse, error)
---------------------------- User Functions ---------------------------- //
func (*Client) HealthCheck ¶ added in v0.2.0
func (c *Client) HealthCheck() (*types.HealthCheckResponse, error)
func (*Client) RefreshToken ¶
func (*Client) SignInWithEmailPassword ¶
func (*Client) SignInWithPhonePassword ¶
func (*Client) SignInWithProvider ¶
func (*Client) SignUp ¶
func (c *Client) SignUp(email, password string, data map[string]interface{}) (*types.SignupResponse, error)
---------------------------- Auth Functions ---------------------------- //
func (*Client) SignUpWithEmailOTP ¶
func (c *Client) SignUpWithEmailOTP(email string, options *SignUpOptions) error
func (*Client) UpdateAuthSession ¶
func (*Client) UpdatePassword ¶ added in v0.2.0
func (*Client) UpdateUser ¶ added in v0.2.0
func (c *Client) UpdateUser(updates types.UpdateUserRequest) (*types.UpdateUserResponse, error)
type ClientOptions ¶
type SignUpOptions ¶
Click to show internal directories.
Click to hide internal directories.