auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package auth provides contracts for N26 authentication.

Index

Constants

View Source
const (
	// BasicAuthUsername is the username which is used in Authorization header while logging to n26api.
	BasicAuthUsername = "nativeweb"
	// BasicAuthPassword is the password which is used in Authorization header while logging to n26api.
	BasicAuthPassword = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token string

Token is an oauth2 token.

type TokenProvider

type TokenProvider interface {
	// Token provides a token.
	Token(ctx context.Context) (Token, error)
}

TokenProvider provides oauth2 token.

Jump to

Keyboard shortcuts

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