Skip to content

Commit e076160

Browse files
authored
fix links to examples (#169)
1 parent b4ca490 commit e076160

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
66

77
This module does not provide an authentication strategy, but it provides a very fast utility to handle authentication (and multiple strategies) in your routes, without adding overhead.
8-
Check out a complete example [here](https://github.com/fastify/fastify-auth/blob/master/example.js).
8+
Check out a complete example [here](test/example.js).
99

1010
## Install
1111
```
@@ -72,7 +72,7 @@ fastify
7272
})
7373
})
7474
```
75-
_For more examples, please check [`example-composited.js`](example-composited.js)_
75+
_For more examples, please check [`example-composited.js`](test/example-composited.js)_
7676

7777
This plugin support `callback` and `Promise` returned by the functions. Note that an `async` function **does not have** to call the `done` parameter, otherwise the route handler to which the auth methods are linked to [might be called multiple times](https://www.fastify.io/docs/latest/Hooks/#respond-to-a-request-from-a-hook):
7878
```js
@@ -105,7 +105,7 @@ fastify
105105

106106

107107
Keep in mind that route definition should either be done as [a plugin](https://github.com/fastify/fastify/blob/master/docs/Plugins.md) or within an `.after()` callback.
108-
For a complete example implementation, see [example.js](example.js).
108+
For a complete example implementation, see [example.js](test/example.js).
109109

110110
`@fastify/auth` will run all your authentication methods and your request will continue if at least one succeeds, otherwise it will return an error to the client.
111111
Any successful authentication will automatically stop `@fastify/auth` from trying the rest, unless you provide the `run: 'all'` parameter:

0 commit comments

Comments
 (0)