Passport strategy for authentication with [Icy Network](https://icynet.eu) through the OAuth 2.0 API.
## Usage
`npm install passport-icynet --save`
#### Configure Strategy
The Icy Network authentication strategy authenticates users via a Icy Network user account and OAuth 2.0 token(s). A Icy Network API client ID, secret and redirect URL must be supplied when using this strategy. The strategy also requires a `verify` callback, which receives the access token and an optional refresh token, as well as a `profile` which contains the authenticated Icy Network user's profile. The `verify` callback must also call `cb` providing a user to complete the authentication.
```javascript
var IcyNetworkStrategy = require('passport-icynet').Strategy;
In some use cases where the profile may be fetched more than once or you want to keep the user authenticated, refresh tokens may wish to be used. A package such as `passport-oauth2-refresh` can assist in doing this.
Example:
`npm install passport-oauth2-refresh --save`
```javascript
var IcyNetworkStrategy = require('passport-icynet').Strategy