fix: foto perfil url

This commit is contained in:
2025-11-12 14:26:51 -03:00
parent 87b59af8da
commit 553fc578a6
5 changed files with 972 additions and 1114 deletions

View File

@@ -40,7 +40,7 @@ export const createAuth = (
export const getCurrentUser = query({
args: {},
handler: async (ctx) => {
const authUser = await authComponent.safeGetAuthUser(ctx as any);
const authUser = await authComponent.safeGetAuthUser(ctx);
if (!authUser) {
return;
}
@@ -70,7 +70,7 @@ export const getCurrentUser = query({
});
export const getCurrentUserFunction = async (ctx: QueryCtx | MutationCtx) => {
const authUser = await authComponent.safeGetAuthUser(ctx as any);
const authUser = await authComponent.safeGetAuthUser(ctx);
if (!authUser) {
return;
}
@@ -89,7 +89,7 @@ export const createAuthUser = async (
ctx: MutationCtx,
args: { nome: string; email: string; password: string }
) => {
const { auth, headers } = await authComponent.getAuth(createAuth, ctx as any);
const { auth, headers } = await authComponent.getAuth(createAuth, ctx);
const result = await auth.api.signUpEmail({
headers,
@@ -107,7 +107,7 @@ export const updatePassword = async (
ctx: MutationCtx,
args: { newPassword: string; currentPassword: string }
) => {
const { auth, headers } = await authComponent.getAuth(createAuth, ctx as any);
const { auth, headers } = await authComponent.getAuth(createAuth, ctx);
await auth.api.changePassword({
headers,