Create Account endpoint works
This commit is contained in:
@@ -20,11 +20,7 @@ impl FromStr for Claims {
|
||||
type Err = jsonwebtoken::errors::Error;
|
||||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
let token = *(s
|
||||
.split("Bearer ")
|
||||
.collect::<Vec<_>>()
|
||||
.last()
|
||||
.unwrap_or(&""));
|
||||
let token = *(s.split("Bearer ").collect::<Vec<_>>().last().unwrap_or(&""));
|
||||
println!("Parsing token: '{}'", token);
|
||||
|
||||
match decode::<Claims>(
|
||||
|
||||
Reference in New Issue
Block a user