Closed sandros94 closed 5 months ago
Currently the token override only accepts a string, undefined or false. I should also implement true and object.
token
string
undefined
false
true
object
Cases:
token === undefined
token === string
token === true
token === false
token === object
implemented with https://github.com/Sandros94/nuxt-surrealdb/commit/2ed09c290c85b5497e39262566767151d6f3e0e9
Currently the
token
override only accepts astring
,undefined
orfalse
. I should also implementtrue
andobject
.Cases:
token === undefined
: try auth > current db > default dbtoken === string
: use string as tokentoken === true
: try current db > default db authtoken === false
: don't use any tokenstoken === object
: use as basic auth