Snorlax\Auth\BearerAuth::getAuthType PHP Method

getAuthType() public method

{@inheritDoc}
public getAuthType ( )
    public function getAuthType()
    {
        return 'Bearer';
    }

Usage Example

Example #1
0
 public function testBearerAuth()
 {
     $token = base64_encode('this is secret');
     $auth = new BearerAuth($token);
     $this->assertSame($token, $auth->getCredentials());
     $this->assertSame('Bearer', $auth->getAuthType());
 }