Ionic3. where is authentication sample? login,logout, register


#1

where is ionic3’s authenctication sample.

i wanna make login,logout,register page.

there are some sample pages(ionic1,ionic2)
i need ionic3 sample.

plz tell me, thanks.


#2

Ionic2 and Ionic3 are fundamentally the same thing.


#3

thanks your reply.

authentication ionic2

but, this is not work.
ill look it up.

thanks.


#4

What doesn’t work? “does not work” is not a good description.


#5

when push login button, nothing.
i expected to move tabs page.

but,when push login button, alwasy this happen.

 127.0.0.1 - - [31/May/2017 20:35:19] "OPTIONS /api/login HTTP/1.1" 200 10

i dont need “OPTIONS” method. i want “PUT” method. but not work…

in spite of adding this config, still not work.

{
  "name": "auth",
  "app_id": "",
  "type": "ionic-angular",
  "proxies": [{
    "path": "/api/login",
    "proxyUrl": "http://localhost:3000"
  }]
}

what should i do…?


#6

This is how browsers work. You can read all about it here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS If the OPTIONS request is successful, it should then do the desired request.

And again:

is not a error description we can work with.


#7

thanks your reply.
yes… options request is always successful
but, idont know why next page is not showing up when i click login button.

mmm…ill look it up arround “token”.

thanks !!