Skip to content

Commit 63c55c2

Browse files
committed
Add FAQ about storing tokens in JSON.
1 parent e9ddfbf commit 63c55c2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/getting-started/faq.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,13 @@ variables. A small example is shown below:
140140
return "!"
141141
142142
143-
The prefix can also be passed as or returned from this function as a list of :class:`str` to allow multiple prefixes to be used.
143+
The prefix can also be passed as or returned from this function as a list of :class:`str` to allow multiple prefixes to be used.
144+
145+
146+
Why do my tokens in ``.tio.tokens.json`` occasionally go missing?
147+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
148+
149+
This is usually caused by force closing the client while it is attempting to write to the file. If you use ``Ctrl + C`` to close
150+
your client, make sure you only do this once, and wait for up to ``5`` seconds.
151+
152+
Alternatively, and highly recommended, you should look at storing your tokens in a different medium, such as a SQL Database.

0 commit comments

Comments
 (0)