Adonis Ally and iOS facebook login


#1

Adonis Ally works perfectly when you use it for the web… But, is there any way it could be used with iOS apps that are using FacebookSDK?

Difference is that iOS imidietely gets accessToken, so it could work if for example getUser method of facebook driver would accept accessToken also. And if access token is sent it should skip fetching of accessToken.

So something like this (@adonisjs/ally/src/Drivers/Facebook.js):

const accessTokenResponse = queryParams.accessToken || await this.getAccessToken(code, this._redirectUri, {
  grant_type: 'authorization_code'
})

@virk can you introduce something like this? Or there is already a method to solve mobile app social auth and I’m missing something…


#2

Yeah it will be nice to add this functionality to ally, since it has been requested earlier as well.

Would you mind creating a issue for same with adonis-ally repo?


#3

Sorry didn’t understood you… Isn’t this issue already created on adonis-ally repo? How can I help?


#4

Any updates on this? Thanks