Jasper
Jasper

Reputation: 31

Wakanda ionic app session

I'm building a mobile app using the Ionic framework and Wakanda. If I login to the mobile application, the session isn't stored. Does anyone know why the session gets lost after logging in?

(Logging in using a webpage does work)

    $wakanda.$login("username", "password").$promise.then(function(e) {
        if (e.result === true) {
             $wakanda.$currentUser().$promise.then(function(e){
                  console.log(e)
                  // e.result == null, so the session isn't stored. 
             })
        } else {
             //Wrong username/password
        }

    })

Thanks in advance! Jasper

Upvotes: 3

Views: 169

Answers (1)

issam Eljohri
issam Eljohri

Reputation: 322

You have to enable CORS in the project settings and add 127.0.0.1:8100 then the session will be stored. enter image description here

Regards.

Upvotes: 2

Related Questions