lexik / LexikJWTAuthenticationBundle

JWT authentication for your Symfony API
MIT License
2.52k stars 610 forks source link

token no longer being created #1215

Closed ctf0 closed 5 months ago

ctf0 commented 5 months ago

- lexik_jwt_authentication
```yaml
lexik_jwt_authentication:
    secret_key: '%env(resolve:JWT_SECRET_KEY)%'
    public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
    pass_phrase: '%env(JWT_PASSPHRASE)%'
    token_ttl: '%env(JWT_TOKEN_TTL)%' # in seconds, default is 3600

return $this->authenticationSuccessHandler->handleAuthenticationSuccess($user);


- response
```json
{
    "token": "",
    "refresh_token": "c2cab67247510e8430028cf22043c274a34b84035cd2701954784d1fec3b6cf3d36f7f614e1c9ae4e327f27cc30eec47950a9910aa7eafddfcf7c4b0fe95864d"
}

api_logout: path: /api/logout

api_refresh_token: path: /api/token/refresh



am not sure if i missed something out, but for some reason the token no longer being created, any help is appreciated, thanks.
chalasr commented 5 months ago

What do you mean by "no longer"? Did you upgrade or changed something after what the issue appeared?

ctf0 commented 5 months ago

no, all of a sudden i cant get the token, maybe there is something i missed or changed by mistake that could affect the token creation, so is there any other place/config from what i posted above i should check to complete the pkg setup ?

ctf0 commented 5 months ago

i deleted the app & reinit the setup and now its working, am sorry for the inconvenience & thanks for ur help.