getCurrentRole()
getCurrentRole():
string|null
Returns the role from the current token.
Returns
string | null
"customer", "guest", or null if there is no token or it cannot be read.
getCurrentRole():
string|null
Returns the role from the current token.
string | null
"customer", "guest", or null if there is no token or it cannot be read.