mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Separated auth from util and fixed help strings
This commit is contained in:
parent
dce823c6d8
commit
3287d76588
4 changed files with 10 additions and 11 deletions
|
|
@ -7,7 +7,7 @@ import (
|
|||
"os"
|
||||
|
||||
magellan "github.com/OpenCHAMI/magellan/internal"
|
||||
"github.com/OpenCHAMI/magellan/internal/util"
|
||||
"github.com/OpenCHAMI/magellan/pkg/auth"
|
||||
"github.com/lestrrat-go/jwx/jwt"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
|
|
@ -30,7 +30,7 @@ var loginCmd = &cobra.Command{
|
|||
// check if we have a valid JWT before starting login
|
||||
if !forceLogin {
|
||||
// try getting the access token from env var
|
||||
testToken, err := util.LoadAccessToken(tokenPath)
|
||||
testToken, err := auth.LoadAccessToken(tokenPath)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msgf("failed to load access token")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue