auth

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAccessToken

func LoadAccessToken(path string) (string, error)

LoadAccessToken() tries to load a JWT string from an environment variable, file, or config in that order. If loading the token fails with one options, it will fallback to the next option until all options are exhausted.

Returns a token as a string with no error if successful. Alternatively, returns an empty string with an error if a token is not able to be loaded.

Types

This section is empty.

Jump to

Keyboard shortcuts

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