auth

package
v0.0.0-...-92b9631 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorNilCode the code to exchange for a facebook access token is nil
	ErrorNilCode = errors.New("The code to exchange for a facebook access token is nil")
	// ErrorNilUser the request doesn't provide the user id
	ErrorNilUser = errors.New("Nil user id")
)

Functions

This section is empty.

Types

type Auth

type Auth interface {
	AuthUser(code, userID string) (*entities.Facebook, error)
	GetUser(userID string) (*entities.Facebook, bool, error)
}

Auth methods for facebook

func New

func New(sess *session.Session, config ...func(*facebook)) Auth

New auth facebook interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL