Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Laravel\Socialite\Two; class Token { /** * The user's access to..

Decoded Output download

<?php

namespace Laravel\Socialite\Two;

class Token
{
    /**
     * The user's access token.
     *
     * @var string
     */
    public $token;

    /**
     * The refresh token that can be exchanged for a new access token.
     *
     * @var string
     */
    public $refreshToken;

    /**
     * The number of seconds the access token is valid for.
     *
     * @var int
     */
    public $expiresIn;

    /**
     * The scopes the user authorized. The approved scopes may be a subset of the requested scopes.
     *
     * @var array
     */
    public $approvedScopes;

    /**
     * Create a new token instance.
     *
     * @param  string  $token
     * @param  string  $refreshToken
     * @param  int  $expiresIn
     * @param  array  $approvedScopes
     */
    public function __construct(string $token, string $refreshToken, int $expiresIn, array $approvedScopes)
    {
        $this->token = $token;
        $this->refreshToken = $refreshToken;
        $this->expiresIn = $expiresIn;
        $this->approvedScopes = $approvedScopes;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Laravel\Socialite\Two;

class Token
{
    /**
     * The user's access token.
     *
     * @var string
     */
    public $token;

    /**
     * The refresh token that can be exchanged for a new access token.
     *
     * @var string
     */
    public $refreshToken;

    /**
     * The number of seconds the access token is valid for.
     *
     * @var int
     */
    public $expiresIn;

    /**
     * The scopes the user authorized. The approved scopes may be a subset of the requested scopes.
     *
     * @var array
     */
    public $approvedScopes;

    /**
     * Create a new token instance.
     *
     * @param  string  $token
     * @param  string  $refreshToken
     * @param  int  $expiresIn
     * @param  array  $approvedScopes
     */
    public function __construct(string $token, string $refreshToken, int $expiresIn, array $approvedScopes)
    {
        $this->token = $token;
        $this->refreshToken = $refreshToken;
        $this->expiresIn = $expiresIn;
        $this->approvedScopes = $approvedScopes;
    }
}

Function Calls

None

Variables

None

Stats

MD5 e6296e2896745dee5710e61be13293a7
Eval Count 0
Decode Time 92 ms