MCPcopy Create free account
hub / github.com/dailydotdev/apps / betterAuthSetPassword

Function betterAuthSetPassword

packages/shared/src/lib/betterAuth.ts:370–381  ·  view source on GitHub ↗
(
  newPassword: string,
)

Source from the content-addressed store, hash-verified

368};
369
370export const betterAuthSetPassword = async (
371 newPassword: string,
372): Promise<{ status?: boolean; error?: string; code?: string }> => {
373 try {
374 await gqlClient.request(SET_PASSWORD_MUTATION, { newPassword });
375 return { status: true };
376 } catch (error) {
377 return {
378 error: getBetterAuthErrorMessage(error, 'Failed to set password'),
379 };
380 }
381};
382
383export const betterAuthChangeEmail = async (
384 newEmail: string,

Callers 1

onUpdatePasswordFunction · 0.90

Calls 1

Tested by

no test coverage detected