Skip to content

Commit bd18bcd

Browse files
author
Bjørn-Erik Andreasen
committed
updated readme with info on adding custom providers
1 parent 4f424e8 commit bd18bcd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,21 @@ We can `deauthorize()` our user's from using the provider by calling the `deauth
533533
manager.deauthorize('twitter');
534534
```
535535

536+
## Adding your own providers
537+
538+
To add your own providers you can use the `addProvider()` method and fill in your provider details:
539+
540+
```javascript
541+
manager.addProvider({
542+
'name_of_provider': {
543+
auth_version: '2.0',
544+
authorize_url: 'https://provider.dev/oauth',
545+
access_token_url: 'https://provider.dev/oauth/token',
546+
callback_url: ({app_name}) => `${app_name}://oauth`,
547+
}
548+
});
549+
```
550+
536551
## Contributing
537552

538553
This is _open-source_ software and we can make it rock for everyone through contributions.

0 commit comments

Comments
 (0)