Auth using Cookie with Xano

Options
tbb
tbb Member
edited November 2022 in ? Working with APIs

I'm trying to figure out how to store returned auth token in httpOnly cookie and use it for subsequent auth requests to Xano. Does Xano accept httpOnly cookie as auth or does this have to be specifically Bearer XXXX in Authorization header?

Comments

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options

    Xano built-in auth uses the authorization header, but you can roll your own to do as you like! Cookies are just headers - you can read what the user sent, and update/change it for the trip back by looking at the header variable and setting the header (available under "utility functions") you want for the return. It's low-level so you need to know what you are doing, but Xano makes the power available to you!