Skip to content

Commit

Permalink
Add respoonse for forgot password
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Dec 16, 2023
1 parent ca94d25 commit 7692a73
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 151 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import type {
User,
ValidateJWTTokenResponse,
ValidateSessionResponse,
ForgotPasswordResponse,
} from './types';

// re-usable gql response fragment
Expand Down Expand Up @@ -161,7 +162,7 @@ export class Authorizer {

forgotPassword = async (
data: Types.ForgotPasswordInput
): Promise<ApiResponse<GenericResponse>> => {
): Promise<ApiResponse<ForgotPasswordResponse>> => {
if (!data.state) data.state = encode(createRandomString());

if (!data.redirect_uri) data.redirect_uri = this.config.redirectURL;
Expand Down
Loading

0 comments on commit 7692a73

Please sign in to comment.