@@ -119,16 +119,13 @@ func Prompt(question string) (string, error) {
119119}
120120
121121// GetAuthUrlForTokenPage returns the auth URL for the token page
122- func GetAuthUrlForTokenPage (useOnboarding bool ) string {
122+ func GetAuthUrlForTokenPage () string {
123123 baseURL := "https://api.workos.com/user_management/authorize"
124124 params := url.Values {}
125125 params .Add ("response_type" , "code" )
126126 params .Add ("client_id" , viper .GetString ("workos_client_id" ))
127127
128- redirectPath := "tokens/callback"
129- if useOnboarding {
130- redirectPath = "tokens/onboarding-callback"
131- }
128+ redirectPath := "tokens/callback?clientName=rules"
132129 params .Add ("redirect_uri" , fmt .Sprintf ("%s%s" , viper .GetString ("app_url" ), redirectPath ))
133130
134131 params .Add ("state" , uuid .New ().String ())
@@ -198,7 +195,7 @@ func RefreshToken(refreshToken string) (AuthConfig, error) {
198195}
199196
200197// Login authenticates using the Continue web flow
201- func Login (useOnboarding bool ) (AuthConfig , error ) {
198+ func Login () (AuthConfig , error ) {
202199 // If CONTINUE_API_KEY environment variable exists, use that instead
203200 if apiKey := os .Getenv ("CONTINUE_API_KEY" ); apiKey != "" {
204201 color .Green ("Using CONTINUE_API_KEY from environment variables" )
@@ -210,7 +207,7 @@ func Login(useOnboarding bool) (AuthConfig, error) {
210207 color .Cyan ("\n Starting authentication with Continue..." )
211208
212209 // Get auth URL
213- authURL := GetAuthUrlForTokenPage (useOnboarding )
210+ authURL := GetAuthUrlForTokenPage ()
214211 color .Green ("Opening browser to sign in at: %s" , authURL )
215212 if err := browser .OpenURL (authURL ); err != nil {
216213 fmt .Printf ("Failed to open browser: %v\n " , err )
0 commit comments