I figured out how to modify the Spark / Auth0 setup to accomplish what I needed - will write-up and share - hopefully it will help others, but also hoping that more experienced Laravel / PHP devs can help me improve what I did - will finish the write up and post to Medium and then link here in the next two days
Authenticating a native mobile client using Spark APIs
I am using Spark to develop a web app and would also like to use enable a native iOS app to use the same resources for subscription, authentication and some additional api access.
I can return data via an api by enabling the API Token, however, the token is generated at a user level.
I haven't been able to find any examples - so then switched to trying Auth0 (which is really cool)
But running into issues with Auth0 too - I have included the Auth0 package and can hit the Auth0 authorization form (i.e I can launch the widget and on the Auth0 side it shows a successful verification), but cannot use it to authorize access within the Laravel Spark application - I think it may be due to namespacing issues, but haven't figured it out.
Any guidance appreciated - thinking of just going back to straight Laravel app, use the Auth0 guide https://auth0.com/docs/quickstart/webapp/laravel and then add cashier.
Any recommendations or links to learning resources appreciated.
Please or to participate in this conversation.