utils

package
v1.16.8 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenTokenWithCustomExpiry

func GenTokenWithCustomExpiry(t *testing.T, expiry time.Time) *oauth2.Token

func Valid

func Valid(t *oauth2.Token) bool

Valid reports whether t is non-nil, has an AccessToken, and is not expired.

Types

This section is empty.

Jump to

Keyboard shortcuts

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