I realized that the auth and refresh tokens are not valid if there was server reset. Is there option to make them persistent?
You can fork the source code from github and implement a persistent service for your requirement. After that use your image to start a server
Besides what @tunglt1810 suggested, you can also find more info on another post: Where is session data stored? - #2 by mofirouz
Hope this helps you a bit more.
Thank you both for the suggestions.