auth

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Formatting text with the Google Slides API Video: https://www.youtube.com/watch?v=_O2aUCJyCoQ

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleHTTPClient

func NewGoogleHTTPClient(forceNewToken bool) (*http.Client, error)

func Setup

func Setup() (*http.Client, error)

func WrapError

func WrapError(err error) error

WrapError adds CLI instructions to refresh the auth token.

Types

type Options

type Options struct {
	EnvFile     string `short:"e" long:"env" description:"Env filepath"`
	NewTokenRaw []bool `short:"n" long:"newtoken" description:"Retrieve new token"`
}

func (*Options) NewToken

func (opt *Options) NewToken() bool

Jump to

Keyboard shortcuts

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