How to created a Refresh token

you need to revoke the old token. There is no native solution for revoking tokens in strapi. See Is there away to revoke user's jwt token?