Skip to content

Client-side tokens? #180

Closed Answered by lukeocodes
iamnafets asked this question in General help
Jun 1, 2023 · 3 comments · 12 replies
Discussion options

You must be logged in to vote

Currently, officially, we do not have a solution for client-side tokens.

Our recommendation is to use a proxy service of your own, to mask the API key in requests you make to our API. This should essentially act as a middleman to add the token to the request, and forward on the replies to the client. You can then define your own Auth between the proxy and your client, to prevent unauthenticated users from making API calls - or not, that is up to you.

While we have the option (as Chris points out) of short-lived tokens, our recommendation will always be to never expose an API key in the client.

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
9 replies
@coreyward
Comment options

@iamnafets
Comment options

@Mijawel
Comment options

@iamnafets
Comment options

@lukeocodes
Comment options

Comment options

You must be logged in to vote
3 replies
@coreyward
Comment options

@augustnmonteiro
Comment options

@coreyward
Comment options

Answer selected by lukeocodes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants