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

Function betterAuthSetPassword

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

Source from the content-addressed store, hash-verified

352};
353
354export const betterAuthSetPassword = async (
355 newPassword: string,
356): Promise<{ status?: boolean; error?: string; code?: string }> => {
357 try {
358 await gqlClient.request(SET_PASSWORD_MUTATION, { newPassword });
359 return { status: true };
360 } catch (error) {
361 return {
362 error: getBetterAuthErrorMessage(error, 'Failed to set password'),
363 };
364 }
365};
366
367export const betterAuthChangeEmail = async (
368 newEmail: string,

Callers 1

onUpdatePasswordFunction · 0.90

Calls 1

Tested by

no test coverage detected