Using Strapi v3.1.7. When sending a request to the endpoint "auth/local/register", i got the new created user but no JWT token as said in the doc.
Strapi no JWT token return on auth/local/register
974 Views Asked by Sid Ali At
2
There are 2 best solutions below
1

Either disable email confirmation for user registration setting (easier but less secure), or use a register flow like so:
- send register POST request to
/auth/local/register
- inform user they must check email to verify email
- ask user to sign-in (POST to
/auth/local
), or auto sign them based on the above - save JWT from sign-in request
For anyone who might be wondering, this is not really a bug it's a feature. See: https://github.com/strapi/strapi/pull/2916
If you have enabled email confirmation for user registration, by default it will remove jwt from the payload as the email is yet to be confirmed by the user. However, there is no mention about this AFAIK in the docs right now.