Skip to content

Commit

Permalink
fix: removed async from hasNewUserSetupPasswordInRequest()
Browse files Browse the repository at this point in the history
  • Loading branch information
dereekb committed Apr 5, 2023
1 parent b1c61b3 commit 5c7bf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firebase-server/src/lib/nest/auth/auth.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function hasAuthRolesInRequest<N extends AbstractFirebaseNestContext<any,
*
* @param request
*/
export async function hasNewUserSetupPasswordInRequest<N extends AbstractFirebaseNestContext<any, any> = AbstractFirebaseNestContext<any, any>, I = unknown>(request: NestContextCallableRequestWithAuth<N, I>) {
export function hasNewUserSetupPasswordInRequest<N extends AbstractFirebaseNestContext<any, any> = AbstractFirebaseNestContext<any, any>, I = unknown>(request: NestContextCallableRequestWithAuth<N, I>) {
const claims = request.nest.authService.context(request).claims;
return claims[FIREBASE_SERVER_AUTH_CLAIMS_SETUP_PASSWORD_KEY] != null;
}

0 comments on commit 5c7bf2e

Please sign in to comment.