Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Undefined index: oauth2state in Application/XXX/XXX : Invalid State: #35

Closed
kunallibra opened this issue Oct 5, 2020 · 1 comment

Comments

@kunallibra
Copy link

hi I am having this error [Error: 500]

My scopes in the authorised are:
$options = [
'scope' => ['openid email profile offline_access accounting.settings.read accounting.transactions accounting.contacts accounting.attachments']
];

and in the config file:

'scopes' => [
'openid',
'email',
'profile',
'offline_access',
'accounting.settings.read',
'accounting.transactions',
'accounting.contacts',
'accounting.attachments'
],

It is exactly the same. Dont know why am getting this error.

Notice: Undefined index: oauth2state in /Applications/XAMPP/xamppfiles/htdocs/project/callback.php on line 24
Invalid StateInvalid state

@kunallibra kunallibra changed the title INotice: Undefined index: oauth2state in Application/XXX/XXX : Invalid State: Notice: Undefined index: oauth2state in Application/XXX/XXX : Invalid State: Oct 5, 2020
@hailwood
Copy link
Contributor

hailwood commented Oct 6, 2020

Hi @kunallibra,

Are you sure you're using this Laravel integration and not just the XeroAPI/xero-php-oauth2 package?

I'd expect to see a Laravel path there if you're using this package, e.g. /Applications/XAMPP/xamppfiles/htdocs/project/app/Http/Controllers/SomeController.php.

I'm going to close this issue as I don't believe it's related to this package, but feel free to comment if you wish it reopened.

@hailwood hailwood closed this as completed Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants