Learn > On-device catalogs (device.json) > token and config files TOKEN AND CONFIG FILES "token": { "file": "token.json", "path": "token" }, // path defaults to "token" "config": { "file": "config.json" } - token file: any JSON. path is a dotted path to the token string. When the device signs in, it writes the file as {"token": "..."} (or nested, following path). Your plugin.js can write the same file, so the web sign-in and the device sign-in are interchangeable. - config file: a flat JSON object. Every top-level key becomes {cfg.KEY}. Strings and whole numbers work. Booleans, decimals and nested values become empty strings. - Both are capped at 2 KB. - The special config key dest_dir overrides download.dest_dir. Your web page can offer "Save books to: ___". ("/" means SD root. A rejected path is logged and the manifest value is used.) When is the user "not signed in"? When a token block exists and the file is missing, unreadable, or has an empty value at path. Without a token block the catalog is token-less and never asks. End of this folder.