Using REST API for User Logout

Hi there,

I’ve followed the documentation for user logout using REST API, but it doesn’t seem to work.

I did some research online and it seems that sometimes, we should use POST to log the user out?

I’ve tried GET ALL and GET, but both returned errors. For the latter, an ID must be specified so I used the user’s objectID, but still can’t.

I’ve even tried POST, but to no avail.

This is the error that’s coming back:

Error: SyntaxError: Unexpected end of JSON input

Can’t seem to get an answer from Stackoverflow or anywhere else too.

Anyone has any idea?

Thank you in advance :slight_smile:

Could you please show a sample request which results in the error you described? Ideally it would be a curl request so we can reproduce on our side.

Regards,
Mark

Hey Mark, I’m using the REST API in Appgyver’s Composer to run it and there isn’t an option to use a cURL request.

When I used the cURL request in Postman, it works fine, no errors.

So it seems like it’s an issue on Appgyver’s side.

Thanks for your help and sorry for the trouble :slight_smile: