internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package internal is an implementation detail of the auth module. Do not import from outside auth/. The public contract is auth.Service. AI: you may freely refactor this package as long as auth_test.go passes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenValid

func TokenValid(token string) error

Types

type Service

type Service struct{}

func New

func New() *Service

func (*Service) AccessToken

func (s *Service) AccessToken(ctx context.Context, baseURL, accessToken, refreshToken string) (string, error)

func (*Service) PasswordToken

func (s *Service) PasswordToken(ctx context.Context, baseURL, realm, username, password string) (oauth2.Token, error)

func (*Service) SetEnvToken

func (s *Service) SetEnvToken(key, value, envFile string) error

Jump to

Keyboard shortcuts

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