I do to make a JWT auth with Laravel and the Tymondesign jwt-auth, at login I need to make token and a refresh token but I found only how to make token. Someone can help me?
I do to make a JWT auth with Laravel and the Tymondesign jwt-auth, at login I need to make token and a refresh token but I found only how to make token. Someone can help me?
Simply do $newToke = auth()->refresh() Or $newToken = Auth::guard()->refresh()
Check here for more details https://jwt-auth.readthedocs.io/en/develop/auth-guard/