decryptAuthState<T>(encryptedAuthState:string,secret:string):Promise<T>
Decrypts an encrypted AuthState.
| Type Parameter |
|---|
T extends AuthState |
| Parameter | Type | Description |
|---|---|---|
encryptedAuthState | string | The encrypted auth state string to decrypt. |
secret | string | The secret used for decryption. |
Promise<T>
State object on success.
If decryption fails or the auth state has expired.