Skip to content

Commit ca1bf08

Browse files
LeptopodaJochum van der Ploeg
andauthored
docs: fix bearer auth code snipped (#1603)
Co-authored-by: Jochum van der Ploeg <[email protected]>
1 parent 1f48157 commit ca1bf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/advanced/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Handler middleware(Handler handler) {
122122
return handler
123123
.use(requestLogger())
124124
.use(
125-
bearerTokenAuthentication<User>(
125+
bearerAuthentication<User>(
126126
authenticator: (context, token) {
127127
final userRepository = context.read<UserRepository>();
128128
return userRepository.fetchFromAccessToken(token);

0 commit comments

Comments
 (0)