Skip to content

Commit

Permalink
chore(client): update doc comment for handleSignInCallback (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowfrogdev authored Sep 14, 2023
1 parent 675d925 commit af80f01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ export default class LogtoClient {
* Handle the sign-in callback by parsing the authorization code from the
* callback URI and exchanging it for the tokens.
*
* @param callbackUri The callback URI that the user is redirected to after the sign-in flow is completed.
* This URI must match the redirect URI specified in {@link signIn}.
* @param callbackUri The callback URI, including the search params, that the user is redirected to after the sign-in flow is completed.
* The origin and pathname of this URI must match the origin and pathname of the redirect URI specified in {@link signIn}.
* In many cases you'll probably end up passing `window.location.href` as the argument to this function.
* @throws LogtoClientError if the sign-in session is not found.
*/
async handleSignInCallback(callbackUri: string) {
Expand Down

0 comments on commit af80f01

Please sign in to comment.