Meteor: Dealing with authentication token without registered user -
hard find meaningful title. hope clearer now.
i'm building service similar doodle regarding authentication model. user can "create" (using form). there 2 different views. 1 creator can modify settings , 1 public access.
i don't want force users register / log in. came url structure doodle has:
- /{some-id} -> public access
- /{some-id}/admin/{some-token} -> settings page owner
the question how can deal best. pass token admin related methods. don't feel comfortable that.
i thought server side session. found 2 meteor packages both not actively maintained anymore.
another idea misuse built in user management without user recognize it. don't think that's feasible.
so i'm asking if have nice way of dealing this. hope made clear want do.
there many ways of doing it. 1 way reuse accounts package.
you user id {some-id}
, password {some-token}
.
when create new page. create new user on server side using account.createuser.
when enter url /{some-id}/admin/{some-token}
meteor.loginwithpassword.
Comments
Post a Comment