Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes I had to make to this repo to have a RN app connecting to Nhost #4

Open
oristian opened this issue Mar 8, 2021 · 0 comments

Comments

@oristian
Copy link

oristian commented Mar 8, 2021

Had to change the way it was imported - use dereferencing

import { auth, storage } from '../../helpers/nhostSdk';

when you use the auth library, you'll need to pass an object with params instead of email and password separately

  await auth.login({email, password});

  // instead of

  await auth.login(email, password);

  // same deal for auth.register()

I've got my starter up at this GitHub repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant