Skip to content

Conversation

@pfvatterott
Copy link
Collaborator

Middleware that refreshes the user's information.

Initiate by adding this to your Program.cs:

using PropelAuth.Middleware;
app.UseTokenRefresh(
    authUrl: "{YOUR_AUTH_URL}",
    clientId: "{YOUR_CLIENT_ID}",
    clientSecret: "{YOUR_CLIENT_SECRET}"
);

Currently the middleware refreshes the access token and user information on the next request after 10 minutes. You can update the line return jwt.ValidTo <= DateTime.UtcNow.AddMinutes(20); to configure this.

Middleware that refreshes the user's information.
@andrew-propelauth
Copy link
Contributor

Removed in favor of #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants