FakeAuth class
A utility class for generating fake authentication and security-related data.
This class provides static methods to generate passwords, tokens, security questions, and other authentication elements for testing and prototyping.
Constructors
- FakeAuth()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
accessToken(
) → String - Generates a fake access token.
-
apiKey(
) → String - Generates a fake API key.
-
csrfToken(
) → String - Generates a fake CSRF token.
-
jwtToken(
) → String - Generates a fake JWT token.
-
oauthToken(
) → String - Generates a fake OAuth token.
-
password(
{int length = 8}) → String - Generates a random password.
-
recoveryCode(
) → String -
refreshToken(
) → String - Generates a fake refresh token.
-
securityAnswer(
) → String - Generates a random security answer.
-
securityQuestion(
) → String - Generates a random security question.
-
sessionId(
) → String - Generates a fake session ID.
-
twoFactorCode(
) → String