auth

package
v0.0.0-...-cba9ae1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package authは、Google認証APIのラッパーを提供します。 Google認証APIを使用して、ユーザーの認証を行います。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Google

type Google struct {
	Config *oauth2.Config
}

func NewGoogle

func NewGoogle(cfg *config.Config) *Google

func (*Google) GetUserByGoogleAccount

func (g *Google) GetUserByGoogleAccount(code string) (*v2.Userinfo, error)

func (*Google) RedirectOauthURL

func (g *Google) RedirectOauthURL(staet string) string

type IGoogle

type IGoogle interface {
	GetUserByGoogleAccount(code string) (*v2.Userinfo, error)
	RedirectOauthURL(staet string) string
}

Jump to

Keyboard shortcuts

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