user237865
user237865

Reputation: 1250

Ionic Meteor Authentication

I'm trying to create a sample app using Ionic + Meteor, following this link: http://angular-meteor.com/tutorials/ionic/bootstrapping

Everything looked great, but when I came to Authentication I'm stuck. I know I've to use $meteor.loginWithPassword( for User Account Authentication, but I dont have accounts-password .... how do I install that using the Ionic CLI into Ionic project?

Object {loginWithPassword: undefined, requireUser: undefined, requireValidUser: undefined, waitForUser: undefined, createUser: undefined…} TypeError: $meteor.loginWithPassword is not a function ionic.bundle.js:21157

Thanks.

Upvotes: 3

Views: 352

Answers (1)

JeremyK
JeremyK

Reputation: 3240

bower install accounts-password-client-side

And include:

<script src="bower_components/accounts-base-client-side/dist/accounts-base-client-side.bundle.min.js"></script>
<script src="bower_components/accounts-password-client-side/dist/accounts-password-client-side.bundle.min.js"></script>

Upvotes: 3

Related Questions