Enhancements
- FGA 2.0 support: Now that we've revamped our FGA support, we also updated our SDK functions. Under
management.fga
we now support 4 more functions:saveSchema
- Creates a new schema for the project.createRelations
- Creates new relations for the project.deleteRelations
- Deletes relations for the project.check
- Checks if the given relations are satisfied.
- Template ID configuration: We added a new parameter named
templateId
to theLoginOptions
object, used in 'sign up' / 'sign in' / 'sign up or in' functions of relevant authentication methods, to allow controlling which custom email/sms template should be used by the function. This will override the default configuration set in the project's 'Authentication Methods' page. We also added thetemplateId
parameter to theinvite
function, to control the template sent to users upon invitation. - Impersonation JWT configurations: We've expanded the impersonate function to allow passing
customClaims
as well astenantID
, so that the created JWT will include that information.