SilverStripe JWT

MemberTokenGenerator

Generates / Validates a MemberTokenType for graphql responses

Tags
mixin

Extensible

Table of Contents

Methods

getErrorMessage()  : string
Humanise error message based on status code
generateResponse()  : array<string|int, mixed>
Generate MemberToken response

Methods

getErrorMessage()

Humanise error message based on status code

public getErrorMessage(string $status) : string
Parameters
$status : string
Tags
throws
InvalidArgumentException
Return values
string

generateResponse()

Generate MemberToken response

protected generateResponse(string $status[, Member $member = null ][, string $token = null ]) : array<string|int, mixed>
Parameters
$status : string

Status code

$member : Member = null
$token : string = null
Return values
array<string|int, mixed>

Response in format required by MemberToken


        
On this page

Search results