Skip to content

[DOC] Missing mobile guidelines #30

@PhilippRoessner

Description

@PhilippRoessner

Documentation can be submitted with pull requests

  • I know that I can edit the docs myself but prefer to file this issue instead

Docs URL

https://badisi.github.io/auth-js/site/documentation/getting-started/mobile

Description

First I'd like to thank you for this great library! It is exactly what I was waiting for!

I am trying to migrate from a complicated mix of oidc-client-ts for web (angular) and ionic-appauth for our capacitor app to this solution. So far the Web Part works great as a proof of concept.

When I try to login on the android capacitor app, I get the following warning in the console:

 [@badisi/auth-js] This application is currently using a non recommended browser plugin.

ⓘ Please follow the recommended guide and use `@badisi/capacitor-browsertab` instead.

When I look at the code, it seems like this is not required, is that right?

My Authprovider (Identity Server 4) throws an error when I am using the capacitor android client and I am wondering if this might be connected? I remember from my previous implementations that the url scheme was handled differently on ios and on android. One of them had to use "capacitor://" and the other "localhost://" or something like that.

Currently I set the mobileScheme property on the parameter object for initAuth and the same value for the intent-filter in the androidmanifest.xml. Is that all it takes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions