Documentation
¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( ErrInvalidOptions = errors.New("invalid options") ErrDBIsRequired = errors.New("db is required") ErrCreatingFlow = errors.New("error creating flow") ErrCompletingFlow = errors.New("error completing flow") ErrInvalidNextURL = errors.New("invalid next URL") ErrInvalidResponse = errors.New("invalid response") ErrNoVerifiedEmails = errors.New("no verified emails") )
Functions ¶
This section is empty.
Types ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func (*Github) CompleteFlow ¶
func (c *Github) CompleteFlow(ctx context.Context, identifier pgtype.UUID, code string) (flow.Data, error)
CompleteFlow completes a GitHub OAuth flow Called from API handler - inputs should be pre-validated pgx types Defensive check: validates identifier.Valid (returns error → 500 if invalid) Note: code is an OAuth authorization code string (not a database ID)
func (*Github) CreateFlow ¶
func (c *Github) CreateFlow(ctx context.Context, deviceIdentifier pgtype.UUID, userIdentifier pgtype.UUID, nextURL string) (string, error)
CreateFlow creates a new GitHub OAuth flow Called from API handler - inputs should be pre-validated pgx types Defensive check: validates deviceIdentifier.Valid and userIdentifier.Valid if provided Note: nextURL is a string URL (not a database ID)
Click to show internal directories.
Click to hide internal directories.