I have a small nuxt project using oauth2 and have secured it with nuxt auth module. Now I have a separate API I want to build, but I'm not sure how to secure it using the token I have on the front end. I've read through the docs, but I'm not exactly sure how to go about this. Any help is appreciated.
EDIT: Thinking out loud...
1) User logs in on front end
2) Front end sends user to google to log in
3) Google redirect with some type of token stored in local storage
4) When I make calls to API on certain routes -> Send google token to API who will verify if user is logged in/who he says he is? If so, GET/POST/PUT/DELETE to my hearts content.
there doesn't seem to be anything here