Skip to content

weixin-ts / bot/src / saveSession

Function: saveSession()

saveSession(filePath, data): Promise<void>

Defined in: bot/src/auth/session.ts:41

Save session data to a file path. Sets file permissions to 0600 (owner-only) for security.

Parameters

filePath

string

data

SessionData

Returns

Promise<void>

Released under the MIT License.