fix: foto perfil url
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user