You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using your Larapass package, since it's abandoned now I tried to use this one.
I'm using Laravel-doctrine/orm package which means that I'm not relaying on Eloquent.
With previous package I was able to easily implement contracts, etc. but since current contracts are forcing return types to strictly Eloquent related, I'm not able to implement contracts without Model usage.
I think it's mostly about WebAuthnAuthenticatable contract and it's webAuthnCredentials returning MorphMany which I'm not able to use in doctrine world :)
Are there any plans to make this package more open ?
Thanks
Code sample
interfaceWebAuthnAuthenticatable
{
/** * Returns displayable data to be used to create WebAuthn Credentials. * * @return array{name: string, displayName: string} */publicfunctionwebAuthnData(): array;
/** * Removes all credentials previously registered. * * @param string ...$except * @return void */publicfunctionflushCredentials(string ...$except): void;
/** * Disables all credentials for the user. * * @param string ...$except * @return void */publicfunctiondisableAllCredentials(string ...$except): void;
/** * Makes an instance of a WebAuthn Credential attached to this user. * * @param array $properties * @return \Laragear\WebAuthn\Models\WebAuthnCredential */publicfunctionmakeWebAuthnCredential(array$properties): WebAuthnCredential;
/** * Returns a queryable relationship for its WebAuthn Credentials. * * @phpstan-ignore-next-line * @return \Illuminate\Database\Eloquent\Relations\MorphMany|\Laragear\WebAuthn\Models\WebAuthnCredential */publicfunctionwebAuthnCredentials(): MorphMany;
}
The text was updated successfully, but these errors were encountered:
Please check these requirements
Description
Hi @DarkGhostHunter ,
I've been using your Larapass package, since it's abandoned now I tried to use this one.
I'm using Laravel-doctrine/orm package which means that I'm not relaying on Eloquent.
With previous package I was able to easily implement contracts, etc. but since current contracts are forcing return types to strictly Eloquent related, I'm not able to implement contracts without Model usage.
I think it's mostly about
WebAuthnAuthenticatable
contract and it'swebAuthnCredentials
returningMorphMany
which I'm not able to use in doctrine world :)Are there any plans to make this package more open ?
Thanks
Code sample
The text was updated successfully, but these errors were encountered: