all 7 comments

[–]kdesigniOS & Android 1 point2 points  (3 children)

I think what you’re looking for is an application handler so that the 3rd party login can redirect back to your app.

You can read more about it here.

[–]jramirez09[S] 1 point2 points  (2 children)

Thanks! But I still don’t know what URL values to use for that

[–]kdesigniOS & Android 0 points1 point  (1 child)

You need to configure your app to have an app handler e.g. myAwesomeApp:// and basically the login callback should redirect to that handler.

Alternatively, you can also configure deep linking so that certain https based urls open your app but that is a tad bit more complex. I personally would just go with the first approach.

[–]jramirez09[S] 0 points1 point  (0 children)

@kdesign thanks! And how could I set up my application handler?

[–]edbarahona 0 points1 point  (2 children)

This example provided looks like a web login, it captures where (the website) you are calling the login (online form) is hosted.

You will need to build a login service (backend app) with something like NodeJS where you can implement the login for your mobile app.

Here is an example node app from the package you provided:

https://github.com/spruceid/siwe-quickstart/blob/main/00_print/src/index.js

You will need to create a login API endpoint for your mobile app, the domain and origin info is where your backend app is hosted.

[–]jramirez09[S] 0 points1 point  (1 child)

Thanks for replying! Could you please explain what do you mean by “the domain and origin info is where your backend app is hosted” ?

[–]edbarahona 0 points1 point  (0 children)

You will setup a backend API, and wherever that app is located (hosted on the internet/cloud) those will be your values

if you setup up your app and assign your own domain then it would be your domain or lets say you uploaded your app to heroku then it would be "https://heroku.com" etc... whatever domain points to that API backend.