accounts icon indicating copy to clipboard operation
accounts copied to clipboard

Documentation and examples of Authenticating are diferent

Open gnunesmoura opened this issue 6 years ago • 5 comments
trafficstars

At the authenticating-resolvers the docs uses this call authenticated(AccountsServer, function)

At the authenticated doc it show the method signature as authenticated(function)

I think that the right one is the authenticated documentation, could you change the exemples to make easier to new users use the API?

gnunesmoura avatar Sep 26 '19 13:09 gnunesmoura

Yeah, you are right! Pull requests welcome to fix the documentation :)

pradel avatar Sep 27 '19 12:09 pradel

There're also some other issues with the docs, right at the getting started. This code doesn't work:

import accountsBoost from `@accounts/boost`;
(async () => {
  const accounts = await accountsBoost({
    tokenSecret: 'your secret'
  }).listen({
    port: 4003
  });
})();

Also, @accounts/oauth-facebook doesn't exist.

deathemperor avatar Dec 10 '19 03:12 deathemperor

@pradel I'm happy to submit a PR for both of these issues if no one else is looking at them?

gezquinndesign avatar Dec 10 '19 09:12 gezquinndesign

I had the same issue. PR raised: https://github.com/accounts-js/accounts/pull/1056

JoJ123 avatar Sep 15 '20 11:09 JoJ123

Hello all,

Sorry I'm so late (!) in actually getting round to this! I see JoJ123 fixed the original issue. I tried looking at the issue raised by deathemperor but can't see a good working example of the minimal code required to start an @accounts/boost server. Any pointers?

gezquinndesign avatar Jan 17 '21 20:01 gezquinndesign