Skip to content

Commit 26d4e73

Browse files
committed
Little Sample Change
1 parent e773fa9 commit 26d4e73

File tree

1 file changed

+1
-6
lines changed
  • samples/UAuthHub/CodeBeam.UltimateAuth.Sample.UAuthHub/Components/Pages

1 file changed

+1
-6
lines changed

samples/UAuthHub/CodeBeam.UltimateAuth.Sample.UAuthHub/Components/Pages/Home.razor.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
3939

4040
if (HubState is null || !HubState.Exists)
4141
{
42-
await StartNewPkceAsync();
4342
return;
4443
}
4544

4645
if (HubState.IsExpired)
4746
{
48-
await StartNewPkceAsync();
47+
await ContinuePkceAsync();
4948
return;
5049
}
5150

@@ -154,10 +153,6 @@ private async Task<string> ResolveReturnUrlAsync()
154153
return flow.ReturnUrl!;
155154
}
156155

157-
// Config default (recommend adding to options)
158-
//if (!string.IsNullOrWhiteSpace(_options.Login.DefaultReturnUrl))
159-
// return _options.Login.DefaultReturnUrl!;
160-
161156
return Nav.Uri;
162157
}
163158

0 commit comments

Comments
 (0)