hey there!
i am trying to use a custom domain for auth. as i am currently using https://nyc.cloud.appwrite.io/v1 but auth doesn’t work on iphone or safari because i assume it's because i am not using the related domain. i am a little bit confused about the process to activate my custom domain for auth.
i already added a custom domain on the appwrite console but not quite familiar with what i am supposed to do next.
appreciate any help.
` login: async ({ providerName, email, password }) => { if (providerName === "google" || providerName === "apple") { try { const redirectURL = window.location.origin;
account.createOAuth2Session(providerName, redirectURL, redirectURL);
return {
success: true,
};
} catch (error: any) {
return {
success: false,
error: {
name: error.code,
message: error.message,
},
};
}
}
try {
await account.deleteSession('current');
} catch (_) {}
try {
await account.createEmailPasswordSession(email, password);
return {
success: true,
redirectTo: "/",
};
} catch (error) {
const { type, message, code } = error as AppwriteException;
return {
success: false,
error: {
message,
name: `${code} - ${type}`,
},
};
}
},`
Recommended threads
- Anonymous Sessions using Node SDKs
I am attempting to use anonymous sessions with the Node SDK but I have simply no idea how to persist the session to a cookie, pass it to the session client, etc...
- Auth working for emulator but not for ph...
hey guys i'm using appwrite for expo react native it is working perfectly for emulator but does not working for physical devices can u explain any one and it is...
- Invalid Credentials to Log in
Hello team, I’m facing a login issue with appwrite this morning. I can’t login anymore. I haven’t changed or pushed anything since the last time I was able to l...