MemberExtension
extends DataExtension
in package
Class MemberExtension Add a unique token to the Member for extra validation
Table of Contents
Properties
- $owner : Member|MemberExtension
- $has_many : array<string|int, mixed>
- $jwt_subject_fields : array<string|int, mixed>
- List of names of extra subject fields to add to JWT token
Methods
- AuthTokens() : HasManyList|array<string|int, JWTRecord>
- destroyAuthTokens() : Member
- Destroy all JWT tokens
- getJWTData() : string
- Option to add data to the JWT Subject
- updateCMSFields() : mixed
Properties
$owner
public
Member|MemberExtension
$owner
$has_many
private
static array<string|int, mixed>
$has_many
= ['AuthTokens' => \Firesphere\GraphQLJWT\Model\JWTRecord::class]
Tags
$jwt_subject_fields
List of names of extra subject fields to add to JWT token
private
static array<string|int, mixed>
$jwt_subject_fields
= []
Tags
Methods
AuthTokens()
public
AuthTokens() : HasManyList|array<string|int, JWTRecord>
Return values
HasManyList|array<string|int, JWTRecord>destroyAuthTokens()
Destroy all JWT tokens
public
destroyAuthTokens() : Member
Return values
MembergetJWTData()
Option to add data to the JWT Subject
public
getJWTData() : string
Return values
stringupdateCMSFields()
public
updateCMSFields(FieldList $fields) : mixed
Parameters
- $fields : FieldList