I have an example on my github profile, doing getting a token via post. Using node and express. https://github.com/danizavtz/tokenAuth U can see the code @ server/services/login.service.js
I don't get the question 'search string using get' thing. You mean query params in the URL? Something like: localhost/api/users/name=?foo On 20 January 2017 at 10:54, Daniel Mota <[email protected]> wrote: > Dear all, > > I am new at NodeJS, so my apologizes for a "simple" question, but this is > a problem in my project. > > During a webserver I built, I need to do two things: > > 1) Authenticate using POST a token I have registered > 2) Send the search string using GET > > What happens is that I get a true on the first, but a blocking msg on the > second. > > Maybe the synchronous aspect of the language is tricking me. > > Anyone solved this challenge? > > > Thanks a lot! > > > Regards > > > DMota > > -- > Job board: http://jobs.nodejs.org/ > New group rules: https://gist.github.com/othiym23/9886289#file- > moderation-policy-md > Old group rules: https://github.com/joyent/node/wiki/Mailing-List- > Posting-Guidelines > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/nodejs/5f589937-b5c3-46c3-bce1-bb1bf5fff7f3%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/5f589937-b5c3-46c3-bce1-bb1bf5fff7f3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- []'s -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAET7tnYupMmGUXaPmRuM28MQ8Syjhz4tDVG7F65nph_VDoD4AA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
