Custom Storage
Why do I need storage?#
The storage is used to store the session (authentication keys, server salts and time offset)
How to make your own custom storage?#
1. Create#
It's easy. The custom storage must follow this API:
Examples can be found in the last section
2. Use#
Create an instance of the custom storage and pass it to storageOptions.instance:
Ready-made storages#
The library includes ready-made storages:
- tempStorage only stores data while the script is running