Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/desktop/layer/renderer/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export const {
changeEmail,
changePassword,
deleteUserCustom,
forgetPassword,
getAccountInfo,
getProviders,
getSession,
linkSocial,
listAccounts,
oneTimeToken,
requestPasswordReset,
resetPassword,
sendVerificationEmail,
signIn,
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"web": "expo start --web"
},
"dependencies": {
"@better-auth/expo": "1.3.28",
"@better-auth/expo": "1.4.2-beta.4",
"@expo/metro-runtime": "5.0.4",
"@expo/react-native-action-sheet": "4.1.1",
"@follow-app/client-sdk": "catalog:",
Expand Down Expand Up @@ -49,7 +49,7 @@
"@tanstack/react-query": "5.90.6",
"@tanstack/react-query-persist-client": "5.90.8",
"@types/qrcode": "1.5.5",
"better-auth": "1.3.28",
"better-auth": "1.4.2-beta.4",
"camelcase-keys": "10.0.1",
"dayjs": "1.11.19",
"dnum": "2.15.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ export const authClient = createAuthClient({
export const {
changeEmail,
changePassword,
forgetPassword,
getAccountInfo,
getCookie,
getProviders,
linkSocial,
oneTimeToken,
requestPasswordReset,
sendVerificationEmail,
signIn,
signUp,
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/modules/settings/routes/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import { GoogleCuteFiIcon } from "@/src/icons/google_cute_fi"
import type { AuthProvider } from "@/src/lib/auth"
import {
deleteUser,
forgetPassword,
getAccountInfo,
getProviders,
linkSocial,
requestPasswordReset,
unlinkAccount,
} from "@/src/lib/auth"
import { Dialog } from "@/src/lib/dialog"
Expand Down Expand Up @@ -232,7 +232,7 @@ const SecuritySection = () => {
return
}
if (!hasPassword) {
forgetPassword({
requestPasswordReset({
email,
})
toast.success("We have sent you an email with instructions to reset your password.")
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/screens/(modal)/ForgetPasswordScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SubmitButton } from "@/src/components/common/SubmitButton"
import { HeaderCloseOnly } from "@/src/components/layouts/header/HeaderElements"
import { PlainTextField } from "@/src/components/ui/form/TextField"
import { Text } from "@/src/components/ui/typography/Text"
import { forgetPassword } from "@/src/lib/auth"
import { requestPasswordReset } from "@/src/lib/auth"
import { useNavigation } from "@/src/lib/navigation/hooks"
import type { NavigationControllerView } from "@/src/lib/navigation/types"
import { toast } from "@/src/lib/toast"
Expand All @@ -20,7 +20,7 @@ export const ForgetPasswordScreen: NavigationControllerView = () => {
const navigation = useNavigation()
const forgetPasswordMutation = useMutation({
mutationFn: async (email: string) => {
const res = await forgetPassword(
const res = await requestPasswordReset(
{
email,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/ssr/client/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ const auth = new Auth({
export const {
changeEmail,
changePassword,
forgetPassword,
getAccountInfo,
getLastUsedLoginMethod,
getProviders,
getSession,
linkSocial,
listAccounts,
oneTimeToken,
requestPasswordReset,
resetPassword,
sendVerificationEmail,
signIn,
Expand Down
4 changes: 2 additions & 2 deletions apps/ssr/client/pages/(login)/forget-password.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRecaptchaToken } from "@client/hooks/useRecaptchaToken"
import { forgetPassword } from "@client/lib/auth"
import { requestPasswordReset } from "@client/lib/auth"
import { Button } from "@follow/components/ui/button/index.jsx"
import {
Card,
Expand Down Expand Up @@ -54,7 +54,7 @@ export function Component() {
const updateMutation = useMutation({
mutationFn: async (values: z.infer<typeof EmailSchema>) => {
const recaptchaToken = await requestRecaptchaToken("ssr_forget_password")
const res = await forgetPassword(
const res = await requestPasswordReset(
{
email: values.email,
redirectTo: `${env.VITE_WEB_URL}/reset-password`,
Expand Down
4 changes: 2 additions & 2 deletions packages/internal/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@better-auth/stripe": "1.3.28",
"@better-auth/stripe": "1.4.2-beta.4",
"@electron-toolkit/preload": "3.0.2",
"@electron-toolkit/tsconfig": "2.0.0",
"@follow-app/client-sdk": "catalog:",
"@folo-services/drizzle": "0.1.41",
"@t3-oss/env-core": "0.13.8",
"ai": "5.0.87",
"better-auth": "1.3.28",
"better-auth": "1.4.2-beta.4",
"drizzle-orm": "0.44.7",
"sonner": "2.0.7",
"stripe": "19.1.0",
Expand Down
22 changes: 0 additions & 22 deletions patches/better-auth.patch

This file was deleted.

Loading
Loading