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

You must provide a state when server-side auth #197

Closed
wstam88 opened this issue Feb 7, 2017 · 1 comment
Closed

You must provide a state when server-side auth #197

wstam88 opened this issue Feb 7, 2017 · 1 comment

Comments

@wstam88
Copy link

wstam88 commented Feb 7, 2017

I keep getting the same message 'You must provide a state when server-side auth' even when I have provided a state!

what am I doing wrong here?

const opts = {
    "state" : "verysecret",
    "state_type" : "client"
};

const opts_encoded = encodeURIComponent(JSON.stringify(opts));
const url = `https://auth.mydomain.com/auth/runkeeper?k=${key}&opts=${opts_encoded}&redirect_uri=${redirect_uri}&redirect_type=server`;

Thanks in advance

@wstam88
Copy link
Author

wstam88 commented Feb 7, 2017

Nevermind! Had to change back to using clientside mode!

@wstam88 wstam88 closed this as completed Feb 7, 2017
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

1 participant