add login hints

This commit is contained in:
Jacob Overgaard
2024-04-26 15:27:59 +02:00
parent a8f299d8a8
commit 7caa2d30e2

View File

@@ -49,9 +49,9 @@ export class UmbAppAuthModalElement extends UmbModalBaseElement<UmbModalAppAuthC
`;
}
private onSubmit = async (providerName: string) => {
private onSubmit = async (providerName: string, loginHint?: string) => {
const authContext = await this.getContext(UMB_AUTH_CONTEXT);
await authContext.makeAuthorizationRequest(providerName);
await authContext.makeAuthorizationRequest(providerName, false, loginHint);
const isAuthed = authContext.getIsAuthorized();
this.value = { success: isAuthed };