Skip to content

syntax error in website example #12

@PhilippeDunbar

Description

@PhilippeDunbar

Not sure where to submit a bug report for your website's examples, so im submitting here

url: https://oauth.io/getting-started?php#ii-using-the-php-sdk-auth-the-user

first php code block reads:

$request_object = $oauth->auth('the_provider', array(
    'code': $code
));

however php array key value pairs are separated with "=>" and javascript is separated with ":" so it should read

$request_object = $oauth->auth('the_provider', array(
    'code' => $code
));

(the same example is in dashboard>try auth)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions