summaryrefslogtreecommitdiff
path: root/internal/oauth.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/oauth.go')
-rw-r--r--internal/oauth.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/oauth.go b/internal/oauth.go
index 1e728ca..16edd1e 100644
--- a/internal/oauth.go
+++ b/internal/oauth.go
@@ -260,7 +260,8 @@ func (oauth *OAuth) start(name string, authorizationURL string, tokenURL string)
oauthSession := OAuthExchangeSession{ClientID: name, State: state, Verifier: verifier}
oauth.TokenURL = tokenURL
oauth.Session = oauthSession
- oauth.FSM.GoTransitionWithData(OAUTH_STARTED, authURL)
+ // Run the state callback in the background so that the user can login while we start the callback server
+ oauth.FSM.GoTransitionWithData(OAUTH_STARTED, authURL, true)
return nil
}