rails

package
v3.0.38 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCookie

func ParseCookie(cookie string) (string, error)

ParseCookie parses the rails cookie and returns the user ID

Types

type Auth

type Auth struct {
	Cipher   string
	Secret   string
	Salt     string
	SignSalt string
	AuthSalt string
}

func NewAuth

func NewAuth(version, secret string) (*Auth, error)

NewAuth creates a new Auth instance

func (Auth) ParseCookie

func (ra Auth) ParseCookie(cookie string) (userID string, err error)

ParseCookie parses the rails cookie and returns the user ID

Jump to

Keyboard shortcuts

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