You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The returned `credentials` model will be either `None` or an `HTTPAuthorizationCredentials` object with these properties:
44
+
The returned `credentials` model will be an `HTTPAuthorizationCredentials` object with these properties:
45
45
46
46
-`scheme`: Indicates the scheme of the Authorization header (Bearer)
47
47
-`credentials`: Raw token received from the Authorization header
48
48
-`decoded`: The payload of the decoded token
49
49
50
50
## Configuration Options
51
51
52
+
### Debug Mode
53
+
54
+
By default, the middleware suppresses exceptions in order to prevent logging sensitive information. You can change this behavior in the `ClerkHTTPBearer`:
55
+
56
+
```python
57
+
clerk_auth_guard = ClerkHTTPBearer(config=clerk_config, debug_mode=True) # Set debug_mode=True
58
+
```
59
+
60
+
61
+
### Fixing Issued At Time (IAT) Errors
62
+
63
+
In some instances the system clock of an API may be slightly out-of-sync which can cause issues with verifying the `iat` claim.
64
+
65
+
This can be solved one of two ways:
66
+
67
+
1: Disable verifying the `iat` claim, there could be security implications by disabling so make sure it is secure for your use case.
0 commit comments