How to share an authorization token and stay safe?

Hello Community.
I need an advice. What is the safest and easiest way to share a Discourse auth token ("_t" cookie) with another app on another domain?

I want to use the Discourse as a backend for Nuxtjs app.

1 Like

This will help for sure.

https://meta.discourse.org/t/discourse-api-documentation/22706/297

I’m sure it will help, but it didn’t answer my question.

1 Like

I think you need to check how the user api authenticates to discourse. You’ll need to replicate the logic the official app uses. Cookies aren’t the way to go IMHO.
https://github.com/discourse/DiscourseMobile

2 Likes