Skip to content

redirect URL doesn't contain the authorization code #44

@AminaOun

Description

@AminaOun

the sign in works fine but in the response when I retun the user variable instead of this :

image

it gives me this :

image

here is my code :

public function handleAppleCallback(Request $request)
{
    // get abstract user object, not persisted
    $user = Socialite::driver("sign-in-with-apple")
        ->stateless()
        ->user();

    $this->_registerOrLoginUser($user);
   $user->token;
    return response()->json($user);
}

Anyone knows how can I get the auth code ?


Acceptance Criteria

  • The redirect URL from Apple always contains the code authorization parameter
  • Root cause is identified (likely state/session mismatch or misconfigured redirect URI)
  • Package documentation includes troubleshooting steps for redirect URL issues

Test Coverage

  • Integration test: Apple callback URL includes code parameter for a valid authorization flow
  • Test: missing code parameter raises a clear, actionable exception

WSJF Priority Score

  • Score: 3.33
  • User/Business Value: 4 (Affects users expecting auth code in redirect)
  • Time Criticality: 3 (Not time-critical; likely a configuration/docs gap)
  • Risk Reduction/Opportunity Enablement: 3 (Better docs reduce repeated support requests)
  • Job Size: 3 points (S — investigation + documentation)
  • Calculation: (4 + 3 + 3) ÷ 3 = 3.33

Metadata

Metadata

Assignees

No one assigned

    Labels

    WSJF-3.33WSJF score 3.33questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions