It doesn’t - it’s necessary for Bubble to be able to check that it is valid.

Let’s call the API token a password. Bubble needs to know that the password is correct before permitting something (i.e allowing the BE to run). Also, we only want Bubble and Xano to know the password, and we don’t want anyone to be able to search for passwords.

So, if we want Bubble to know the password, we store it in the database, as that’s something only Bubble can see. When protected by privacy rules, nobody can just search for all of the passwords that could be used. Of course, Xano knows the password because you told it (stored it in a variable somewhere, probably.

The advantage compared to this…

… is that Xano never sees an admin API token, and the advantage compared to this…

… is that Xano never sees plaintext user passwords.

1 Like