Wrong number of segments
-
Hi there,
I’m wondering if I either have an error, or a wrong config with this plugin. It’s hard to know because there’s no documentation and I don’t know where else to ask.
Apologies also for any noobing cos it’s a little confusing for the uninitiated I must say. Sorry…
I have installed this plugin on a blank WordPress install to experiment with, but cannot get autologin happening.
I get {“code”:400,”message”:”Wrong number of segments”,”data”:null} from a URL that looks like this (copied from the Simple JWT Login Settings page):
https://thedomain.com/?rest_route=/simple-jwt-login/v1/autologin&jwt=JWT&token=%5Bauthkeyhere%5DWhere “token” matches the field in Auth Code URL Key and “authkeyhere” is one of the authcodes set on that same page.
If I set “Auto-Login Requires Auth Code” to “no” and try a URL that looks like below, I get the same error message:
https://thedomain.com/?rest_route=/simple-jwt-login/v1/autologin&jwt=JWT&tokenHere are some screenshots:
https://postimg.cc/gallery/26s4obsb8/Any ideas?
- The topic ‘Wrong number of segments’ is closed to new replies.