MCPcopy Create free account
hub / github.com/supabase/auth / generateAccessToken

Method generateAccessToken

internal/api/token.go:291–297  ·  view source on GitHub ↗
(r *http.Request, tx *storage.Connection, user *models.User, sessionId *uuid.UUID, authenticationMethod models.AuthenticationMethod)

Source from the content-addressed store, hash-verified

289}
290
291func (a *API) generateAccessToken(r *http.Request, tx *storage.Connection, user *models.User, sessionId *uuid.UUID, authenticationMethod models.AuthenticationMethod) (string, int64, error) {
292 return a.tokenService.GenerateAccessToken(r, tx, tokens.GenerateAccessTokenParams{
293 User: user,
294 SessionID: sessionId,
295 AuthenticationMethod: authenticationMethod,
296 })
297}
298
299func (a *API) issueRefreshToken(r *http.Request, headers http.Header, conn *storage.Connection, user *models.User, authenticationMethod models.AuthenticationMethod, grantParams models.GrantParams) (*tokens.AccessTokenResponse, error) {
300 return a.tokenService.IssueRefreshToken(r, headers, conn, user, authenticationMethod, grantParams)

Callers 13

generateAAL1TokenMethod · 0.80
generateTokenMethod · 0.80
generateTokenMethod · 0.80
SetupTestMethod · 0.80
makeSuperAdminMethod · 0.80
makeSuperAdminMethod · 0.80
TestSendSMSHookMethod · 0.80

Calls 1

GenerateAccessTokenMethod · 0.80

Tested by 13

generateAAL1TokenMethod · 0.64
generateTokenMethod · 0.64
generateTokenMethod · 0.64
SetupTestMethod · 0.64
makeSuperAdminMethod · 0.64
makeSuperAdminMethod · 0.64
TestSendSMSHookMethod · 0.64