Skip to content

Commit

Permalink
assume user is logged in if RENDER_API_KEY is set (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitemongerer authored Nov 19, 2024
1 parent d791f11 commit fac7858
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/tui/views/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ func (l *LoginView) View() string {
}

func isAlreadyLoggedIn(ctx context.Context) bool {
if cfg.GetAPIKey() != "" {
return true
}

c, err := client.NewDefaultClient()
if err != nil {
return false
Expand Down

0 comments on commit fac7858

Please sign in to comment.