Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which headers do we need to pass to make this work? #42

Open
ShivamJoker opened this issue Nov 7, 2022 · 1 comment
Open

Which headers do we need to pass to make this work? #42

ShivamJoker opened this issue Nov 7, 2022 · 1 comment

Comments

@ShivamJoker
Copy link

How can we help?

I want to use this on a ReactNative app to protect my HLS streams, but I can't pass cookies or other headers in there.

So I would like to know exactly what headers I should include in the request to make this work?

@unitypark
Copy link

this library is about authenticating your user to be able to access your origin.

either with Cognito Identity or external, your user should be authenticated and this library will issue and return you the tokens which will be saved in your cookie.

You can use either cognito authorizer or your custom authorizer to protect your internal apis or resources in aws.

in this case, send idToken in Header with key of "Authorization"
as default, if you did not specify any thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants