export const auth = createAuthClient({
baseURL: API_URL, // backend api url (on port 3000)
// could potentially change above to frontend url, but that's not where the auth server is, since I'm connected to an elysia backend
plugins: [
expoClient({
scheme: "myapp",
storagePrefix: "myapp",
storage: SecureStore,
}),
],
});
// ....
export async function signInSocial() {
await auth.signIn.social({
provider: "github",
callbackURL: "/test", // redirects to API_URL/test on web (docs say it changes to app url when running in native)
});
}
export const auth = createAuthClient({
baseURL: API_URL, // backend api url (on port 3000)
// could potentially change above to frontend url, but that's not where the auth server is, since I'm connected to an elysia backend
plugins: [
expoClient({
scheme: "myapp",
storagePrefix: "myapp",
storage: SecureStore,
}),
],
});
// ....
export async function signInSocial() {
await auth.signIn.social({
provider: "github",
callbackURL: "/test", // redirects to API_URL/test on web (docs say it changes to app url when running in native)
});
}