Jump to content

How to validate access token?


IAmSasha

Recommended Posts

IAmSasha

Hi!

 

I've been developing a web app which uses Emby for authentication, and i've got everything working fine with that. The next step is wanting to validate all requests with the access token that is returned. I'm not sure which endpoint I am best calling however in order to validate this. Hopefully someone can assist here.

 

Thanks!

Link to comment
Share on other sites

Hi, what do you mean by validating all requests? You're not going to receive requests, right?

 

If you are using the Emby api then the answer is to simply try to use the access token as part of a request. If it's no longer valid the server will throw an error.

Link to comment
Share on other sites

IAmSasha

Hi,

 

I currently use my emby server's authentication side to log users into the app. Once they login and recieve an access token, I want to be able to check that token with my emby server on every request they sent to my API.

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...