UNPKG
@payload-auth/better-auth-plugin
Version:
latest (1.1.8)
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
A Payload CMS plugin for Better Auth
@payload-auth/better-auth-plugin
/
dist
/
lib
/
auth-strategy.d.ts
9 lines
(8 loc)
•
288 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
type
{
AuthStrategy
}
from
'payload'
;
/** * Auth strategy for BetterAuth *
@param
adminRoles
- Admin roles *
@param
userSlug
- User collection slug *
@returns
Auth strategy */
export
declare
function
betterAuthStrategy
(
adminRoles
?:
string
[],
userSlug
?:
string
):
AuthStrategy
;