timoth-y/kicksware-api

View on GitHub
services/users/core/meta/authToken.go

Summary

Maintainability
A
0 mins
Test Coverage
package meta

import "time"

type AuthToken struct {
    Token string
    Success bool
    Expires time.Time
}

func NewAuthToken(token string, expires time.Time) *AuthToken {
    return &AuthToken{
        token,
        true,
        expires,
    }
}