Skip to content

Commit

Permalink
Merge pull request #1088 from lens-protocol/fix/tsdoc
Browse files Browse the repository at this point in the history
fix: switchAccount action doc
  • Loading branch information
cesarenaldi authored Feb 28, 2025
2 parents 6a64375 + 21bdf92 commit 2a77f49
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/client/src/actions/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,12 @@ export function legacyRolloverRefresh(
}

/**
* Switch to account managed.
* Switch to another managed account.
*
* ```ts
* const result = await switchAccount(sessionClient, {
* account: evmAddress('0x90c8c68d0Abfb40D4fCD72316A65e42161520BC3'),
* });
* ```
* @remarks Use the {@link SessionClient#switchAccount} method to switch to an account instead.
* It's unlikely you'll need to use this action directly.
*
* @param client - The session client for the authenticated Account.
* @param client - The current session client.
* @param request - The query request.
* @returns The authenticated tokens for the switched account.
*/
Expand Down

0 comments on commit 2a77f49

Please sign in to comment.