KEYCLOAK-14652 Align custom adapter example with documentation
This commit is contained in:
parent
78a1c6cf23
commit
098446b070
1 changed files with 9 additions and 4 deletions
|
@ -74,10 +74,15 @@ declare namespace Keycloak {
|
|||
* ```ts
|
||||
* import Keycloak, { KeycloakAdapter } from 'keycloak-js';
|
||||
*
|
||||
* class MyCustomAdapter implements KeycloakAdapter {
|
||||
* // Implement methods required by KeycloakAdapter here.
|
||||
* // Implement the 'KeycloakAdapter' interface so that all required methods are guaranteed to be present.
|
||||
* const MyCustomAdapter: KeycloakAdapter = {
|
||||
* login(options) {
|
||||
* // Write your own implementation here.
|
||||
* }
|
||||
*
|
||||
* // The other methods go here...
|
||||
* };
|
||||
*
|
||||
* const keycloak = new Keycloak();
|
||||
*
|
||||
* keycloak.init({
|
||||
|
|
Loading…
Reference in a new issue