auth

package
v0.0.0-...-91ee7f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Overview

Package auth provides client SDK to access all auth's use cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseToken

func ParseToken(tokenString string, secret []byte) (*entity.Claims, error)

ParseToken parses the token.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is responsible to connect to auth use cases.

func NewClient

func NewClient(cfg *Config) (*Client, error)

NewClient creates an instance of Client.

func (*Client) Register

func (c *Client) Register(ctx context.Context, account *entity.Account) error

Register registers an account.

type Config

type Config struct {
	Host     string
	Username string
	Password string
	Options  []grpc.DialOption
}

Config defines configuration to work with Client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL