Categorygithub.com/koofr/go-oauth2utils
modulepackage
0.0.0-20240520112815-a2c588e4d1e3
Repository: https://github.com/koofr/go-oauth2utils.git
Documentation: pkg.go.dev

# README

go-oauth2utils

Go OAuth2 utils.

GoDoc

Install

go get github.com/koofr/go-oauth2utils

Testing

go test

# Functions

NewReactiveTokenSource returns a ReactiveTokenSource which repeatedly returns the same token as long as it's valid, starting with t.

# Structs

ReactiveTokenSource is a TokenSource that holds a single token in memory and validates its expiry before each call to retrieve it with Token.
Transport is an http.RoundTripper that makes OAuth 2.0 HTTP requests, wrapping a base RoundTripper and adding an Authorization header with a token from the supplied Sources.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author