auth

package
v0.0.0-...-f8f5229 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package auth manages Spotify API auth

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchAccessToken

func FetchAccessToken() string

FetchAccessToken - Returns a valid access token for the Spotify API. * If no cached access token or refresh token

  • Opens browser to authorization URL
  • Accepts user input of authorization code
  • Exchanges authorization code for access token and refresh token

* If access token is expired

  • Exchange refresh token for a new access token

Types

This section is empty.

Jump to

Keyboard shortcuts

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