Persists the full set of OAuth tokens (access token, refresh token,
and expiry time) to secure storage. Dynamically imports the token
storage module to avoid circular dependencies.
Promise resolving when tokens are successfully stored
Example
// Store tokens after successful authentication awaitsetTokens({ accessToken:"spotify-access-token", refreshToken:"spotify-refresh-token", expiresIn:3600 }); console.log("User is now authenticated and tokens are stored securely");
Stores authentication tokens securely
Persists the full set of OAuth tokens (access token, refresh token, and expiry time) to secure storage. Dynamically imports the token storage module to avoid circular dependencies.
This function: