Skip to content

Commit 819d0b8

Browse files
Add redirect_uri to configuration in readme (#400)
1 parent 86c28ab commit 819d0b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Take note of the **Client ID** and **Domain** values under the "Basic Informatio
6666

6767
#### Static configuration
6868

69-
Install the SDK into your application by importing `AuthModule.forRoot()` and configuring with your Auth0 domain and client id:
69+
Install the SDK into your application by importing `AuthModule.forRoot()` and configuring with your Auth0 domain and client id, as well as the URL to which Auth0 should redirect back after succesful authentication:
7070

7171
```ts
7272
import { NgModule } from '@angular/core';
@@ -78,6 +78,9 @@ import { AuthModule } from '@auth0/auth0-angular';
7878
AuthModule.forRoot({
7979
domain: 'YOUR_AUTH0_DOMAIN',
8080
clientId: 'YOUR_AUTH0_CLIENT_ID',
81+
authorizationParams: {
82+
redirect_uri: window.location.origin
83+
}
8184
}),
8285
],
8386
// ...

0 commit comments

Comments
 (0)