auth

package
v0.0.0-...-185ece4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NameInstagram string = "instagram"

NameInstagram is the unique name of the Instagram provider.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instagram

type Instagram struct {
	// contains filtered or unexported fields
}

Instagram allows authentication via Instagram OAuth2.

func NewInstagramProvider

func NewInstagramProvider() *Instagram

NewInstagramProvider creates new Instagram provider instance with some defaults.

func (*Instagram) FetchAuthUser

func (p *Instagram) FetchAuthUser(token *oauth2.Token) (*AuthUser, error)

FetchAuthUser returns an AuthUser instance based on the Instagram's user api.

API reference: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user#fields

Jump to

Keyboard shortcuts

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