How can I obtain an offline access token for my backup app?

i create a backup app and you now backup app like a background app and background app contain offline access token how to get offline access token plz provide resource i red shopidy access mode but this documentation not use full me i cannot understand