Closed apoorv569 closed 1 year ago
I got it working, the issue was that I was not splitting the Bearer
part from the token
.
let split: Vec<&str> = auth_header.split_whitespace().collect();
if split.len() == 2 && split[0] == "Bearer" {
let auth_token = split[1];
// Do stuff
}
adding this fixed the problem.
I have an
Store
setup calledAuthStore
,and then I use this to set values from user creation form,
But I don't see anything in browser, the
h2
forUsername
andPassword
stay empty.I tried adding another field
count
to see if it adds up,But the count stays at 0.
Am I doing something wrong here?