Generating User Token in v3
Unsolved
Technical Support
-
In NodeBB v2, I was using this API call to get a token for the current user by passing their password:
"/api/v2/users/" + userId + "/tokens"When I tried to upgrade it to v3, I now get a response saying "forbidden":
"/api/v3/users/" + userId + "/tokens"Did something change besides the version in the API call?
-
@ron-murhammer https://docs.nodebb.org/api/write/#tag/users/paths/~1users~1{uid}~1tokens/post
Did you pass in a csrf token?
Copyright © 2024 NodeBB | Contributors